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:
Varun Gujarathi
2024-11-26 14:30:33 -05:00
committed by GitHub
parent 2c2bf2b5bb
commit d135d2907a
7 changed files with 622 additions and 357 deletions

View File

@@ -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