[mirotalksfu] - add token endpoint

هذا الالتزام موجود في:
Miroslav Pejic
2024-02-23 13:43:01 +01:00
الأصل 5bdf4ed4f5
التزام dea4577e53
11 ملفات معدلة مع 211 إضافات و41 حذوفات

عرض الملف

@@ -73,6 +73,31 @@ paths:
$ref: '#/definitions/JoinResponse'
'403':
description: 'Unauthorized!'
/token:
post:
tags:
- 'token'
summary: 'Get token'
description: 'Get token'
parameters:
- in: body
name: token
description: Custom Token.
schema:
$ref: '#/definitions/TokenRequest'
consumes:
- 'application/json'
produces:
- 'application/json'
security:
- secretApiKey: []
responses:
'200':
description: 'Get token done'
schema:
$ref: '#/definitions/TokenResponse'
'403':
description: 'Unauthorized!'
securityDefinitions:
secretApiKey:
@@ -143,6 +168,11 @@ definitions:
properties:
join:
type: string
TokenResponse:
type: 'object'
properties:
token:
type: string
Peer:
type: object
properties: