Some checks are pending
Docs Deploy / build_and_deploy (push) Waiting to run
Generate Docs / cli (push) Waiting to run
Generate Config Doc / cli (push) Waiting to run
Go formatting / go-formatting (push) Waiting to run
Check links / markdown-link-check (push) Waiting to run
Integration / pre-test (push) Waiting to run
Integration / test on (push) Blocked by required conditions
Integration / status (push) Blocked by required conditions
Lint / Lint Go code (push) Waiting to run
Test / test (ubuntu-latest) (push) Waiting to run
61 lines
1.8 KiB
Cheetah
61 lines
1.8 KiB
Cheetah
swagger: "2.0"
|
|
|
|
info:
|
|
description: "Faucet API doc and explorer.\n\nSend coins from the faucet account configured in `config.yml` to the receiver account."
|
|
version: "1.0.0"
|
|
title: "Faucet for {{ .ChainID }}"
|
|
|
|
servers:
|
|
- url: /
|
|
|
|
paths:
|
|
/:
|
|
post:
|
|
summary: "Send tokens to receiver account"
|
|
consumes:
|
|
- "application/json"
|
|
produces:
|
|
- "application/json"
|
|
parameters:
|
|
- in: "body"
|
|
name: "body"
|
|
description: "Send coins request object\n\nAfter making a sample execution by the 'Try it out' button in the right corner, visit the following link to see the difference in sample account's balance: {{ .APIAddress }}/cosmos/bank/v1beta1/balances/cosmos1uzv4v9g9xln2qx2vtqhz99yxum33calja5vruz"
|
|
required: true
|
|
schema:
|
|
$ref: "#/definitions/SendRequest"
|
|
responses:
|
|
"400":
|
|
description: "Bad request"
|
|
"500":
|
|
description: "Internal error"
|
|
"200":
|
|
description: "All coins are successfully sent\n\nAfter making a sample execution, visit the following link to see the difference in sample account's balance: {{ .APIAddress }}/cosmos/bank/v1beta1/balances/cosmos1uzv4v9g9xln2qx2vtqhz99yxum33calja5vruz"
|
|
schema:
|
|
$ref: "#/definitions/SendResponse"
|
|
|
|
definitions:
|
|
SendRequest:
|
|
type: "object"
|
|
required:
|
|
- address
|
|
properties:
|
|
address:
|
|
type: "string"
|
|
default: "cosmos1uzv4v9g9xln2qx2vtqhz99yxum33calja5vruz"
|
|
coins:
|
|
type: "array"
|
|
default:
|
|
- 10token
|
|
items:
|
|
type: "string"
|
|
|
|
SendResponse:
|
|
type: "object"
|
|
properties:
|
|
error:
|
|
type: "string"
|
|
|
|
|
|
externalDocs:
|
|
description: "Find out more about Ignite CLI"
|
|
url: "https://github.com/ignite/cli/tree/main/docs"
|