injected service use to handle the chat related operations
injected auth secrets used to handle the authentication
injected function used to handle the authentication
injected logger used to handle the logging
request context [headers, body, params, query].
body.typeId
is requiredbody.ownerIds
is required201 Status Created
This handler will create topic by applying the following steps in sequence:
Authenticate the request (authenticate)
Create topic (chatService.createTopic)
Create subscription for each owner (chatService.createSubscription)
Get topic by id and normalize (chatService.getOneTopicAndNormalize)
Return the created topic
400 NBError Bad Request
500 NBError Internal Server Error
Generated using TypeDoc
Create topic handler