TD-635: update spec (#18)

* TD-635: change spec issue_api_key response

* TD-635: revert security and headers in revoke method

---------

Co-authored-by: anatoliy.losev <losto@nix>
This commit is contained in:
ttt161 2023-08-10 12:25:03 +03:00 committed by GitHub
parent 6e62adb508
commit 870c41d1f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 17 additions and 15 deletions

View File

@ -1,11 +1,6 @@
type: object
required:
- accessToken
properties:
accessToken:
description: Токен доступа, ассоциированный с данным ключом
type: string
minLength: 1
maxLength: 4000
example: |
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0a2kiOiIxS2dJWUJHc0NncSIsImlhdCI6MTUxNjIzOTAyMn0.6YsaZQC9A7BjxXHwRbJfUO6VujOb4rHTKrqmMt64TbQ
description: Токен доступа, ассоциированный с ключом
type: string
minLength: 1
maxLength: 4000
example: |
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0a2kiOiIxS2dJWUJHc0NncSIsImlhdCI6MTUxNjIzOTAyMn0.6YsaZQC9A7BjxXHwRbJfUO6VujOb4rHTKrqmMt64TbQ

View File

@ -63,9 +63,15 @@ post:
'200':
description: Ключ выпущен
schema:
allOf:
- $ref: '#/definitions/ApiKey'
- $ref: '#/definitions/AccessToken'
type: object
required:
- accessToken
- apiKey
properties:
accessToken:
$ref: '#/definitions/AccessToken'
apiKey:
$ref: '#/definitions/ApiKey'
'401':
$ref: "#/responses/Unauthorized"
'400':

View File

@ -6,10 +6,11 @@ get:
requestRevokeApiKey, в результате выполнения этого запроса
Api Key будет отозван
operationId: revokeApiKey
security: []
tags:
- apiKeys
parameters:
- $ref: '#/parameters/requestID'
- $ref: '#/parameters/deadline'
- $ref: '#/parameters/partyId'
- $ref: '#/parameters/apiKeyId'
- $ref: '#/parameters/apiKeyRevokeToken'