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). DEPRECATED , use RegisterSwaggerService(...)
func RegisterSwaggerService ¶
func RegisterSwaggerService(aSwaggerConfig Config, wsContainer *restful.Container)
RegisterSwaggerService 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 // [optional] path where the swagger UI will be served, e.g. /swagger SwaggerFilePath string // [optional] 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 ¶
type Parameter ¶
type Parameter struct { ParamType string `json:"paramType"` Name string `json:"name"` Description string `json:"description"` DataType string `json:"dataType"` Required bool `json:"required"` AllowableValues map[string]string `json:"allowableValues,omitempty"` AllowMultiple bool `json:"allowMultiple"` }
Click to show internal directories.
Click to hide internal directories.