MSP-5372 Implement /application/get_application_by_token
This commit is contained in:
1 parent
42873c2f75
commit
41dd618412
7 files changed
+150
No files matched your search
@@ -230,6 +230,20 @@ definitions:
|
||||
$ref: '#/definitions/domain.ServiceWithApps'
|
||||
type: array
|
||||
type: object
|
||||
domain.GetApplicationByTokenRequest:
|
||||
properties:
|
||||
token:
|
||||
type: string
|
||||
required:
|
||||
- token
|
||||
type: object
|
||||
domain.GetApplicationByTokenResponse:
|
||||
properties:
|
||||
applicationGroupId:
|
||||
type: integer
|
||||
applicationId:
|
||||
type: integer
|
||||
type: object
|
||||
domain.IdListRequest:
|
||||
properties:
|
||||
idList:
|
||||
@@ -629,6 +643,40 @@ paths:
|
||||
summary: Получить приложение по идентификатору
|
||||
tags:
|
||||
- application
|
||||
/application/get_application_by_token:
|
||||
post:
|
||||
consumes:
|
||||
- application/json
|
||||
description: Возвращает идентификатор приложения по токену
|
||||
parameters:
|
||||
- description: Идентификатор приложения
|
||||
in: body
|
||||
name: body
|
||||
required: true
|
||||
schema:
|
||||
$ref: '#/definitions/domain.GetApplicationByTokenRequest'
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
schema:
|
||||
$ref: '#/definitions/domain.GetApplicationByTokenResponse'
|
||||
"400":
|
||||
description: Bad Request
|
||||
schema:
|
||||
$ref: '#/definitions/apierrors.Error'
|
||||
"404":
|
||||
description: Not Found
|
||||
schema:
|
||||
$ref: '#/definitions/apierrors.Error'
|
||||
"500":
|
||||
description: Internal Server Error
|
||||
schema:
|
||||
$ref: '#/definitions/apierrors.Error'
|
||||
summary: Получить приложение по токену
|
||||
tags:
|
||||
- application
|
||||
/application/get_applications:
|
||||
post:
|
||||
consumes:
|
||||
|
||||
Reference in new issue
Block a user