-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Closes: #35 The swagger generation consists of the following steps: - generate json files from proto using the swagger plugin - combine json files into client/docs/swagger-ui/swagger.yaml file - embed client/docs/swagger-ui into go code using rakyll/statik - serve this specific statik fs to `/swagger` endpoint
- Loading branch information
Showing
12 changed files
with
51,094 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ run: | |
timeout: 5m | ||
skip-dirs: | ||
- tests/ | ||
- client/docs/statik | ||
|
||
linters: | ||
disable-all: true | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,128 @@ | ||
{ | ||
"swagger": "2.0", | ||
"info": { | ||
"title": "AtomOne - gRPC Gateway docs", | ||
"description": "A REST interface for state queries", | ||
"version": "1.0.0" | ||
}, | ||
"apis": [] | ||
"swagger": "2.0", | ||
"info": { | ||
"title": "AtomOne - gRPC Gateway docs", | ||
"description": "A REST interface for state queries", | ||
"version": "1.0.0" | ||
}, | ||
"apis": [ | ||
{ | ||
"url": "./tmp-swagger-gen/atomone/gov/v1beta1/query.swagger.json", | ||
"operationIds": { | ||
"rename": { | ||
"Params": "GovParams" | ||
} | ||
} | ||
}, | ||
{ | ||
"url": "./tmp-swagger-gen/atomone/gov/v1/query.swagger.json", | ||
"operationIds": { | ||
"rename": { | ||
"Params": "GovV1Params", | ||
"Proposal": "GovV1Proposal", | ||
"Proposals": "GovV1Proposal", | ||
"Vote": "GovV1Vote", | ||
"Votes": "GovV1Votes", | ||
"Deposit": "GovV1Deposit", | ||
"Deposits": "GovV1Deposit", | ||
"TallyResult": "GovV1TallyResult" | ||
} | ||
} | ||
}, | ||
{ | ||
"url": "./tmp-swagger-gen/cosmos/auth/v1beta1/query.swagger.json", | ||
"operationIds": { | ||
"rename": { | ||
"Params": "AuthParams" | ||
} | ||
} | ||
}, | ||
{ | ||
"url": "./tmp-swagger-gen/cosmos/bank/v1beta1/query.swagger.json", | ||
"operationIds": { | ||
"rename": { | ||
"Params": "BankParams" | ||
} | ||
} | ||
}, | ||
{ | ||
"url": "./tmp-swagger-gen/cosmos/base/tendermint/v1beta1/query.swagger.json", | ||
"operationIds": { | ||
"rename": { | ||
"Params": "BaseParams" | ||
} | ||
} | ||
}, | ||
{ | ||
"url": "./tmp-swagger-gen/cosmos/distribution/v1beta1/query.swagger.json", | ||
"operationIds": { | ||
"rename": { | ||
"Params": "DistributionParams" | ||
} | ||
} | ||
}, | ||
{ | ||
"url": "./tmp-swagger-gen/cosmos/evidence/v1beta1/query.swagger.json", | ||
"operationIds": { | ||
"rename": { | ||
"Params": "EvidenceParams" | ||
} | ||
} | ||
}, | ||
{ | ||
"url": "./tmp-swagger-gen/cosmos/mint/v1beta1/query.swagger.json", | ||
"operationIds": { | ||
"rename": { | ||
"Params": "MintParams" | ||
} | ||
} | ||
}, | ||
{ | ||
"url": "./tmp-swagger-gen/cosmos/params/v1beta1/query.swagger.json", | ||
"operationIds": { | ||
"rename": { | ||
"Params": "Params" | ||
} | ||
} | ||
}, | ||
{ | ||
"url": "./tmp-swagger-gen/cosmos/slashing/v1beta1/query.swagger.json", | ||
"operationIds": { | ||
"rename": { | ||
"Params": "SlashingParams" | ||
} | ||
} | ||
}, | ||
{ | ||
"url": "./tmp-swagger-gen/cosmos/staking/v1beta1/query.swagger.json", | ||
"operationIds": { | ||
"rename": { | ||
"Params": "StakingParams", | ||
"DelegatorValidators": "StakingDelegatorValidators" | ||
} | ||
} | ||
}, | ||
{ | ||
"url": "./tmp-swagger-gen/cosmos/tx/v1beta1/service.swagger.json", | ||
"dereference": { | ||
"circular": "ignore" | ||
} | ||
}, | ||
{ | ||
"url": "./tmp-swagger-gen/cosmos/feegrant/v1beta1/query.swagger.json", | ||
"operationIds": { | ||
"rename": { | ||
"Params": "FeegrantParams" | ||
} | ||
} | ||
}, | ||
{ | ||
"url": "./tmp-swagger-gen/cosmos/upgrade/v1beta1/query.swagger.json", | ||
"operationIds": { | ||
"rename": { | ||
"Params": "UpgradeParams" | ||
} | ||
} | ||
} | ||
] | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.