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:
Karoly Albert Szabo 2019-07-09 12:43:00 +02:00 committed by Alessio Treglia
parent 1c9a188346
commit 8a042dedd3
3 changed files with 3 additions and 3 deletions

File diff suppressed because one or more lines are too long

View File

@ -1862,7 +1862,7 @@ paths:
200:
description: OK
schema:
type: integer
type: string
400:
description: Invalid coin denomination
500:

View File

@ -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")