feat(integerations): add route to get user details (#4030)
* feat(integerations): add route to get user details * Commit updated API documentation * test(integrations): implement unit test for get user details --------- Co-authored-by: Owncast <owncast@owncast.online> Co-authored-by: Gabe Kangas <gabek@real-ity.com>
This commit is contained in:
28
openapi.yaml
28
openapi.yaml
@@ -3217,6 +3217,34 @@ paths:
|
||||
responses:
|
||||
'204':
|
||||
$ref: '#/components/responses/204'
|
||||
/integrations/moderation/chat/user/{userId}:
|
||||
get:
|
||||
summary: Get a user's details
|
||||
operationId: ExternalGetUserDetails
|
||||
tags: ['External', 'Chat']
|
||||
security:
|
||||
- BearerAuth: []
|
||||
parameters:
|
||||
- in: path
|
||||
name: userId
|
||||
schema:
|
||||
type: string
|
||||
description: The ID of the user to find
|
||||
required: true
|
||||
responses:
|
||||
'200':
|
||||
description: User information
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/ModerationUserDetails'
|
||||
'401':
|
||||
$ref: '#/components/responses/401BasicAuth'
|
||||
'404':
|
||||
$ref: '#/components/responses/404'
|
||||
default:
|
||||
$ref: '#/components/responses/Default'
|
||||
|
||||
/moderation/chat/user/{userId}:
|
||||
get:
|
||||
summary: Get a user's details
|
||||
|
||||
Reference in New Issue
Block a user