Skip to content

Commit

Permalink
Deploying to gh-pages from @ 3f7336c 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
mhrynenko committed Apr 23, 2024
1 parent 3908dd8 commit 54cfb06
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 4 deletions.
16 changes: 14 additions & 2 deletions openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@
"tags": [
"Airdrop"
],
"summary": "Create airdrop",
"description": "Create an airdrop for unique user. The proof will be verified.",
"summary": "Get an airdrop",
"description": "Get an airdrop for unique user.",
"operationId": "createAirdrop",
"parameters": [
{
Expand Down Expand Up @@ -154,6 +154,8 @@
"required": [
"address",
"status",
"amount",
"tx_hash",
"created_at",
"updated_at"
],
Expand Down Expand Up @@ -182,6 +184,16 @@
"format": "time.Time",
"description": "RFC3339 UTC timestamp of the airdrop successful tx",
"example": "2021-09-01T00:00:00Z"
},
"amount": {
"type": "string",
"description": "Amount of airdropped coins",
"example": "100stake"
},
"tx_hash": {
"type": "string",
"description": "Hash of the airdrop transaction",
"example": "F1CC0E80E151A67F75E41F2CDBF07920C29C9A3CDB6131B2A23A7C9D1964AD0B"
}
}
}
Expand Down
14 changes: 12 additions & 2 deletions openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ paths:
get:
tags:
- Airdrop
summary: Create airdrop
description: Create an airdrop for unique user. The proof will be verified.
summary: Get an airdrop
description: Get an airdrop for unique user.
operationId: createAirdrop
parameters:
- in: path
Expand Down Expand Up @@ -98,6 +98,8 @@ components:
required:
- address
- status
- amount
- tx_hash
- created_at
- updated_at
properties:
Expand All @@ -121,6 +123,14 @@ components:
format: time.Time
description: RFC3339 UTC timestamp of the airdrop successful tx
example: '2021-09-01T00:00:00Z'
amount:
type: string
description: Amount of airdropped coins
example: 100stake
tx_hash:
type: string
description: Hash of the airdrop transaction
example: F1CC0E80E151A67F75E41F2CDBF07920C29C9A3CDB6131B2A23A7C9D1964AD0B
AirdropKey:
type: object
required:
Expand Down

0 comments on commit 54cfb06

Please sign in to comment.