Documentation ¶
Overview ¶
Package swagger implements the structures of the Swagger (https://github.com/wordnik/swagger-core/wiki) specification
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InstallSwaggerService ¶
func InstallSwaggerService(aSwaggerConfig Config)
InstallSwaggerService add the WebService that provides the API documentation of all services conform the Swagger documentation specifcation. (https://github.com/wordnik/swagger-core/wiki).
Types ¶
type ApiDeclaration ¶
type Config ¶
type Config struct { WebServicesUrl string // url where the services are available, e.g. http://localhost:8080 ApiPath string // path where the JSON api is avaiable , e.g. /apidocs SwaggerPath string // path where the swagger UI will be served, e.g. /swagger SwaggerFilePath string // location of folder containing Swagger HTML5 application index.html WebServices []*restful.WebService }
type ErrorResponse ¶
type Model ¶
type Model struct { Id string `json:"id"` Properties map[string]ModelProperty `json:"properties"` }
type ModelProperty ¶
Click to show internal directories.
Click to hide internal directories.