Skip to content

Commit

Permalink
Merge pull request #348 from alchemyplatform/read-webhook
Browse files Browse the repository at this point in the history
add pagination to read custom webhook api
  • Loading branch information
SahilAujla authored Jan 26, 2024
2 parents f959520 + 543d86a commit 2b0ff22
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions notify/notify.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,15 @@ paths:
/graphql/variables/{variable}:
get:
summary: Read Variable Elements
description: This endpoint allows you to read the values within a Custom Webhook variable
description: |
This endpoint allows you to read the values within a Custom Webhook variable.
It supports pagination with `limit` and `after` query parameters.
tags: ['Custom Webhook API Methods']
parameters:
- $ref: '#/components/schemas/X-Alchemy-Token'
- $ref: '#/components/schemas/variable'
- $ref: '#/components/schemas/limit'
- $ref: '#/components/schemas/after'
x-readme:
samples-languages:
- curl
Expand Down Expand Up @@ -48,7 +52,7 @@ paths:
schema:
type: array
items:
$ref: '#/components/schemas/custom_webhook_object_response'
$ref: '#/components/schemas/webhook_addresses_response'
'404':
description: Not found- The requested resource could not be found
'500':
Expand Down Expand Up @@ -699,11 +703,12 @@ components:
required: true
limit:
name: limit
in: query
required: false
schema:
type: integer
default: 100
description: 'Number of items per page.'
in: query
description: The maximum number of items to return per page.
pageKey:
name: pageKey
schema:
Expand All @@ -713,10 +718,11 @@ components:
in: query
after:
name: after
required: false
schema:
type: string
default: '5'
description: 'Page cursor for the next page.'
description: 'The cursor that points to the end of the current set of results.'
in: query
nft_filter_object:
type: object
Expand Down

0 comments on commit 2b0ff22

Please sign in to comment.