mirror of
https://github.com/valitydev/swag-payments.git
synced 2024-11-06 17:45:24 +00:00
40 lines
1003 B
YAML
40 lines
1003 B
YAML
get:
|
||
description: Получить webhook по его идентификатору.
|
||
tags:
|
||
- Webhooks
|
||
operationId: getWebhookByID
|
||
parameters:
|
||
- $ref: '#/parameters/requestID'
|
||
- $ref: '#/parameters/deadline'
|
||
- $ref: '#/parameters/webhookID'
|
||
responses:
|
||
'200':
|
||
description: Данные webhook'а
|
||
schema:
|
||
$ref: '#/definitions/Webhook'
|
||
'404':
|
||
$ref: '#/responses/NotFound'
|
||
'401':
|
||
$ref: '#/responses/Unauthorized'
|
||
'400':
|
||
$ref: '#/responses/DefaultLogicError'
|
||
|
||
delete:
|
||
description: Снять указанный webhook.
|
||
tags:
|
||
- Webhooks
|
||
operationId: deleteWebhookByID
|
||
parameters:
|
||
- $ref: '#/parameters/requestID'
|
||
- $ref: '#/parameters/deadline'
|
||
- $ref: '#/parameters/webhookID'
|
||
responses:
|
||
'204':
|
||
description: Webhook успешно снят
|
||
'404':
|
||
$ref: '#/responses/NotFound'
|
||
'401':
|
||
$ref: '#/responses/Unauthorized'
|
||
'400':
|
||
$ref: '#/responses/DefaultLogicError'
|