Skip to content

Commit

Permalink
feat: swagger gen and dark theme
Browse files Browse the repository at this point in the history
  • Loading branch information
emidev98 committed Sep 5, 2023
1 parent 9e8c18e commit 9f014ca
Show file tree
Hide file tree
Showing 11 changed files with 38,520 additions and 21,873 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ update-swagger-docs: statik

apply-swagger: gen-swagger update-swagger-docs

.PHONY: proto-all proto-gen gen-swagger update-swagger-docs apply-swagger
.PHONY: proto-gen gen-swagger update-swagger-docs apply-swagger

########################################
### Tools & dependencies
Expand Down
56 changes: 53 additions & 3 deletions client/docs/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
}
},
{
"url": "./tmp-swagger-gen/cosmwasm/tokenfactory/v1beta1/query.swagger.json",
"url": "./tmp-swagger-gen/osmosis/tokenfactory/v1beta1/query.swagger.json",
"operationIds": {
"rename": {
"Params": "TokenFactoryParams"
Expand Down Expand Up @@ -61,7 +61,7 @@
"url": "./tmp-swagger-gen/cosmos/base/tendermint/v1beta1/query.swagger.json",
"operationIds": {
"rename": {
"Params": "BaseParams"
"Params": "TendermintBaseParams"
}
}
},
Expand All @@ -81,14 +81,56 @@
}
}
},
{
"url": "./tmp-swagger-gen/cosmos/base/node/v1beta1/query.swagger.json",
"operationIds": {
"rename": {
"Params": "CosmosBaseParams"
}
}
},
{
"url": "./tmp-swagger-gen/cosmos/feegrant/v1beta1/query.swagger.json"
},
{
"url": "./tmp-swagger-gen/cosmos/gov/v1beta1/query.swagger.json",
"operationIds": {
"rename": {
"Params": "GovParams"
"Params": "GovParams",
"Proposal": "GovProposal",
"Tally": "GovTally",
"TallyResult" : "GovTallyResult"
}
}
},
{
"url": "./tmp-swagger-gen/cosmos/gov/v1/query.swagger.json",
"operationIds": {
"rename": {
"Params": "GovV1Params",
"Proposals": "GovV1Proposals",
"Proposal": "GovV1Proposal",
"Deposits": "GovV1Deposits",
"Deposit": "GovV1Deposit",
"TallyResult": "GovV1TallyResult",
"Votes": "GovV1Votes",
"Vote": "GovV1Vote"
}
}
},
{
"url" : "./tmp-swagger-gen/cosmos/consensus/v1/query.swagger.json",
"operationIds": {
"rename": {
"Params": "ConsensusParams"
}
}
},
{
"url": "./tmp-swagger-gen/cosmos/group/v1/query.swagger.json",
"operationIds": {
"rename": {
"Params": "GroupParams"
}
}
},
Expand Down Expand Up @@ -187,6 +229,14 @@
"Params": "IBCFee"
}
}
},
{
"url": "./tmp-swagger-gen/router/v1/query.swagger.json",
"operationIds": {
"rename": {
"Params": "IBCRouterParams"
}
}
}
]
}
2 changes: 1 addition & 1 deletion client/docs/statik/statik.go

Large diffs are not rendered by default.

7 changes: 1 addition & 6 deletions client/docs/swagger-ui/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<meta charset="UTF-8">
<title>Swagger UI</title>
<link rel="stylesheet" type="text/css" href="swagger-ui.css" >
<link rel="stylesheet" type="text/css" href="swagger-ui-dark.css" >
<link rel="icon" type="image/png" href="favicon-32x32.png" sizes="32x32" />
<link rel="icon" type="image/png" href="favicon-16x16.png" sizes="16x16" />
<style>
Expand All @@ -21,12 +22,6 @@
{
box-sizing: inherit;
}

body
{
margin:0;
background: #fafafa;
}
</style>
</head>

Expand Down
849 changes: 849 additions & 0 deletions client/docs/swagger-ui/swagger-ui-dark.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion client/docs/swagger-ui/swagger-ui.css

Large diffs are not rendered by default.

Loading

0 comments on commit 9f014ca

Please sign in to comment.