Skip to content

Commit

Permalink
Deploying to gh-pages from @ f6f39d7 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
mhrynenko committed May 23, 2024
1 parent db1353b commit 29fe81a
Show file tree
Hide file tree
Showing 2 changed files with 115 additions and 0 deletions.
70 changes: 70 additions & 0 deletions openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,35 @@
}
}
}
},
"/integrations/airdrop-svc/airdrops/params": {
"get": {
"tags": [
"Airdrop"
],
"summary": "Get airdrop event parameters",
"description": "Get an airdrop parameters for integration.",
"operationId": "GetAirdropParams",
"responses": {
"200": {
"content": {
"application/vnd.api+json": {
"schema": {
"type": "object",
"required": [
"data"
],
"properties": {
"data": {
"$ref": "#/components/schemas/AirdropParams"
}
}
}
}
}
}
}
}
}
},
"components": {
Expand Down Expand Up @@ -226,6 +255,47 @@
}
}
},
"AirdropParams": {
"allOf": [
{
"$ref": "#/components/schemas/AirdropKey"
},
{
"type": "object",
"required": [
"attributes"
],
"properties": {
"attributes": {
"type": "object",
"required": [
"event_id",
"query_selector",
"started_at"
],
"properties": {
"event_id": {
"type": "string",
"description": "Event identifier that is generated during ZKP query creation",
"example": "304351862882731539112827930982999985591702317710421481944329166111111129570"
},
"started_at": {
"type": "integer",
"format": "int64",
"description": "Unix timestamp in seconds when airdrop event starts",
"example": 1716381206
},
"query_selector": {
"type": "string",
"description": "Query selector that is used for proof generation",
"example": 123
}
}
}
}
}
]
},
"CreateAirdrop": {
"allOf": [
{
Expand Down
45 changes: 45 additions & 0 deletions openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,24 @@ paths:
$ref: '#/components/schemas/Errors'
'500':
$ref: '#/components/responses/internalError'
/integrations/airdrop-svc/airdrops/params:
get:
tags:
- Airdrop
summary: Get airdrop event parameters
description: Get an airdrop parameters for integration.
operationId: GetAirdropParams
responses:
'200':
content:
application/vnd.api+json:
schema:
type: object
required:
- data
properties:
data:
$ref: '#/components/schemas/AirdropParams'
components:
schemas:
Airdrop:
Expand Down Expand Up @@ -149,6 +167,33 @@ components:
type: string
enum:
- airdrop
AirdropParams:
allOf:
- $ref: '#/components/schemas/AirdropKey'
- type: object
required:
- attributes
properties:
attributes:
type: object
required:
- event_id
- query_selector
- started_at
properties:
event_id:
type: string
description: Event identifier that is generated during ZKP query creation
example: '304351862882731539112827930982999985591702317710421481944329166111111129570'
started_at:
type: integer
format: int64
description: Unix timestamp in seconds when airdrop event starts
example: 1716381206
query_selector:
type: string
description: Query selector that is used for proof generation
example: 123
CreateAirdrop:
allOf:
- $ref: '#/components/schemas/CreateAirdropKey'
Expand Down

0 comments on commit 29fe81a

Please sign in to comment.