swag-payments/spec/definitions/Webhook.yaml
2017-10-23 16:26:44 +03:00

35 lines
1.1 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

type: object
required:
- scope
- url
properties:
id:
description: |
Идентификатор webhook'а
type: string
readOnly: true
active:
description: |
Включена ли в данный момент доставка оповещений?
type: boolean
readOnly: true
scope:
$ref: '#/definitions/WebhookScope'
url:
description: |
URL, на который будут поступать оповещения о произошедших событиях
type: string
format: uri
maxLength: 1000
publicKey:
description: |
Содержимое публичного ключа, служащего для проверки авторитативности
приходящих на `url` оповещений
type: string
format: hexadecimal
readOnly: true
example: "\
MIGJAoGBAM1fmNUvezts3yglTdhXuqG7OhHxQtDFA+Ss//YuUGjw5ossDbEMoS+S\
IFuYZ/UL9Xg0rEHNRSbmf48OK+mz0FobEtbji8MADayzGfFopXsfRFa7MVy3Uhu5\
jBDpLsN3DyJapAkK0TAYINlZXxVjDwxRNheTvC+xub5WNdiwc28fAgMBAAE="