Versions in this module Expand all Collapse all v0 v0.10.2 Jun 24, 2020 Changes in this version + func GoTypeToSwagger(t reflect.Type) (string, string, string) + func ModelName(t reflect.Type) string + type Api struct + Models map[string]Model + Operations []Operation + type ApiDeclaration struct + BasePath string + Definitions map[string]Model + Paths map[string]map[string]Operation + Swagger string + SwaggerApiInfo SwaggerApiInfo + func NewApiDeclaration(version string, basePath string) *ApiDeclaration + func (decl *ApiDeclaration) AddModel(m Model) + func (decl *ApiDeclaration) GetSDKPaths() map[string]map[string]Operation + func (decl *ApiDeclaration) ToJSON() string + type ApiKey struct + PassAs string + Type string + type Authorization struct + ApiKey ApiKey + LocalOAuth OAuth + type Endpoint struct + ClientIdName string + ClientSecretName string + TokenName string + Url string + type GrantType struct + LoginEndpoint Endpoint + TokenEndpoint Endpoint + TokenName string + TokenRequestEndpoint Endpoint + type Model struct + Description string + Id string + Properties map[string]*ModelProperty + Required []string + func NewModel(id string) Model + type ModelProperty struct + AdditionalProperties *NestedItems + Description string + Enum []string + Format string + HideOnListing bool + Items *NestedItems + RefId string + Required bool + Type string + type NestedItems struct + AdditionalProperties *NestedItems + Items *NestedItems + RefId string + Type string + type OAuth struct + GrantTypes map[string]GrantType + Scopes []string + Type string + type Operation struct + Authorizations []Authorization + Consumes []string + Deprecated bool + Description string + HttpMethod string + IsMonitoring bool + Items map[string]string + Nickname string + Parameters []Parameter + Produces []string + ResponseMessages []ResponseMessage + Responses map[string]Response + Summary string + Tags []string + Type string + func NewOperation(httpMethod, nickname, summary, typ, description string, deprecated bool) (op Operation) + func (op *Operation) AddParameter(param Parameter) + type Parameter struct + AllowMultiple bool + CollectionFormat string + Default string + Description string + Enum []string + Format string + Items map[string]string + Maximum int + Minimum int + Name string + ParamType string + RefId string + Required bool + Schema *Schema + Type string + func NewParameter(paramType string, name string, description string, required bool, ...) (param Parameter) + type Path struct + Operations map[string]Operation + Path string + type ResourceListing struct + ApiVersion string + SwaggerVersion string + type Response struct + Description string + Schema *Schema + type ResponseMessage struct + Code int + Message string + ResponseModel string + type Schema struct + Items map[string]string + Ref string + Type string + type SwaggerApiInfo struct + Description string + Title string + Version string