Skip to content

Commit

Permalink
Add //webhooks/{webhook_id}/msg-opcode/subscriptions (rt.yml)
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksej-paschenko committed Nov 15, 2024
1 parent e2dee4d commit d7a00e0
Showing 1 changed file with 31 additions and 1 deletion.
32 changes: 31 additions & 1 deletion api/rt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,23 @@ paths:
$ref: '#/components/schemas/WebhookAccountTxSubscriptions'
'default':
$ref: '#/components/responses/Error'
/webhooks/{webhook_id}/msg-opcode/subscriptions:
get:
operationId: webhookNewContractsSubscriptions
parameters:
- $ref: '#/components/parameters/tokenQuery'
- $ref: '#/components/parameters/webhookId'
- $ref: '#/components/parameters/offsetQuery'
- $ref: '#/components/parameters/limitQuery'
responses:
'200':
description: "subscriptions"
content:
application/json:
schema:
$ref: '#/components/schemas/WebhookMsgOpcodeSubscriptions'
'default':
$ref: '#/components/responses/Error'
/webhooks/{webhook_id}/subscribe-new-contracts:
post:
description: "receive a notification when a new contract is deployed to the blockchain"
Expand Down Expand Up @@ -484,7 +501,20 @@ components:
failed_attempts:
type: integer
format: int64

WebhookMsgOpcodeSubscriptions:
type: object
required:
- subscriptions
properties:
subscriptions:
type: array
items:
type: object
required:
- opcode
properties:
opcode:
type: string

responses:
Error:
Expand Down

0 comments on commit d7a00e0

Please sign in to comment.