Supply patch for REST (#4698)
While reintroducing the contract tests a little discrepancy was noted:
* type from integer to string in the swagger definition for supply/total/{denominator}
* remove slash from supply/total route in the implementation
This commit is contained in:
parent
1c9a188346
commit
8a042dedd3
File diff suppressed because one or more lines are too long
2
client/lcd/swagger-ui/swagger.yaml
vendored
2
client/lcd/swagger-ui/swagger.yaml
vendored
@ -1862,7 +1862,7 @@ paths:
|
||||
200:
|
||||
description: OK
|
||||
schema:
|
||||
type: integer
|
||||
type: string
|
||||
400:
|
||||
description: Invalid coin denomination
|
||||
500:
|
||||
|
||||
@ -19,7 +19,7 @@ func RegisterRoutes(cliCtx context.CLIContext, r *mux.Router) {
|
||||
func registerQueryRoutes(cliCtx context.CLIContext, r *mux.Router) {
|
||||
// Query the total supply of coins
|
||||
r.HandleFunc(
|
||||
"/supply/total/",
|
||||
"/supply/total",
|
||||
totalSupplyHandlerFn(cliCtx),
|
||||
).Methods("GET")
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user