diff --git a/openapi.json b/openapi.json index 4f658b2..ee3c426 100644 --- a/openapi.json +++ b/openapi.json @@ -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": [ { @@ -154,6 +154,8 @@ "required": [ "address", "status", + "amount", + "tx_hash", "created_at", "updated_at" ], @@ -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" } } } diff --git a/openapi.yaml b/openapi.yaml index ba55b2f..6e3a848 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -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 @@ -98,6 +98,8 @@ components: required: - address - status + - amount + - tx_hash - created_at - updated_at properties: @@ -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: