mirror of
https://github.com/valitydev/swag-api-keys-v2.git
synced 2024-11-06 02:25:17 +00:00
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:
parent
6e62adb508
commit
870c41d1f4
@ -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
|
||||
|
@ -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':
|
||||
|
@ -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'
|
||||
|
Loading…
Reference in New Issue
Block a user