Documentation ¶
Overview ¶
Package rest API.
the purpose of this application is to provide an application that is using plain go code to define an API
This should demonstrate all the possible comment annotations that are available to turn go code into a fully compliant swagger 2.0 spec
Terms Of Service:
there are no TOS at this moment, use at your own risk we take no responsibility
Schemes: http, https Version: 0.0.1 License: MIT http://opensource.org/licenses/MIT Security: - api_key: SecurityDefinitions: api_key: type: apiKey name: KEY in: header
swagger:meta
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterRoutes ¶
func RegisterRoutes(cliCtx context.CLIContext, r *mux.Router, storeName string)
RegisterRoutes, a central function to define routes which is called by the rest module in main application
func RegisterRoutesV2 ¶
func RegisterRoutesV2(cliCtx context.CLIContext, r *mux.Router, storeName string)
RegisterRoutesV2, a central function to define routes which is called by the rest module in main application
Types ¶
type ResponseError ¶
type ResponseError struct { // The error message // in: body Body struct { // The validation message // // Example: Expected type int Code string // An optional field name to which this validation applies Message string // An optional field name to which this validation applies Data string } }
A ResponseError is an error that is used when the required input fails validation. swagger:response ResponseError
type TokenInfos ¶
A TokenInfos is the info of the market. swagger:response TokenInfos