Documentation ¶
Overview ¶
Package petstore API
The purpose of this application is to provie an application that is using plain go to define an API.
This should demonstrate many 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 Host: petstore.swagger.wordnik.com BasePath: /api Version: 1.0.0 License: MIT http://opensource.org/licenses/MIT Contact: John Doe<john.doe@example.com> http://john.doe.com Consumes: - application/json Produces: - application/json
swagger:meta
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ErrorModel ¶
type ErrorModel struct { // the code for this error // required: true Code int32 `json:"code"` // the message for this error // required: true Message string `json:"message"` }
ErrorModel represents a generic error in this application
An error will typically return this model.
The code and message of the error, both get returned.
swagger:model errorModel
Click to show internal directories.
Click to hide internal directories.