Documentation ¶
Overview ¶
=================================================================
Copyright (C) 2019 Spatial Current, Inc. - All Rights Reserved Released as open source under the MIT License. See LICENSE file.
=================================================================
=================================================================
Copyright (C) 2019 Spatial Current, Inc. - All Rights Reserved Released as open source under the MIT License. See LICENSE file.
=================================================================
=================================================================
Copyright (C) 2019 Spatial Current, Inc. - All Rights Reserved Released as open source under the MIT License. See LICENSE file.
=================================================================
=================================================================
Copyright (C) 2019 Spatial Current, Inc. - All Rights Reserved Released as open source under the MIT License. See LICENSE file.
=================================================================
=================================================================
Copyright (C) 2019 Spatial Current, Inc. - All Rights Reserved Released as open source under the MIT License. See LICENSE file.
=================================================================
=================================================================
Copyright (C) 2019 Spatial Current, Inc. - All Rights Reserved Released as open source under the MIT License. See LICENSE file.
=================================================================
=================================================================
Copyright (C) 2019 Spatial Current, Inc. - All Rights Reserved Released as open source under the MIT License. See LICENSE file.
=================================================================
=================================================================
Copyright (C) 2019 Spatial Current, Inc. - All Rights Reserved Released as open source under the MIT License. See LICENSE file.
=================================================================
=================================================================
Copyright (C) 2019 Spatial Current, Inc. - All Rights Reserved Released as open source under the MIT License. See LICENSE file.
=================================================================
=================================================================
Copyright (C) 2019 Spatial Current, Inc. - All Rights Reserved Released as open source under the MIT License. See LICENSE file.
=================================================================
=================================================================
Copyright (C) 2019 Spatial Current, Inc. - All Rights Reserved Released as open source under the MIT License. See LICENSE file.
=================================================================
=================================================================
Copyright (C) 2019 Spatial Current, Inc. - All Rights Reserved Released as open source under the MIT License. See LICENSE file.
=================================================================
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Definition ¶
type Document ¶
type Document struct { Version string `json:"swagger" yaml:"swagger"` Schemes []string `json:"schemes" yaml:"schemes"` BasePath string `json:"basePath" yaml:"basePath"` Host string `json:"host" yaml:"host"` External *External `json:"externalDocs,omitempty" yaml:"externalDocs,omitempty"` Info *Info `json:"info,omitempty" yaml:"info,omitempty"` Paths map[string]Path `json:"paths" yaml:"paths"` Definitions map[string]Definition `json:"definitions,omitempty" yaml:"definitions,omitempty"` }
type Info ¶
type Info struct { Version string `json:"version" yaml:"version"` Title string `json:"title" yaml:"title"` Description string `json:"description" yaml:"description"` TermsOfService string `json:"termsOfService" yaml:"termsOfService"` Contact *Contact `json:"contact,omitempty" yaml:"contact,omitempty"` License *License `json:"license,omitempty" yaml:"license,omitempty"` }
type Operation ¶
type Operation struct { Tags []string `json:"tags" yaml:"tags"` Summary string `json:"summary,omitempty" yaml:"summary,omitempty"` Description string `json:"description,omitempty" yaml:"description,omitempty"` Consumes []string `json:"consumes,omitempty" yaml:"consumes,omitempty"` Produces []string `json:"produces,omitempty" yaml:"produces,omitempty"` Parameters []Parameter `json:"parameters,omitempty" yaml:"parameters,omitempty"` Responses map[string]Response `json:"responses" yaml:"responses"` }
type Parameter ¶
type Parameter struct { Name string `json:"name" yaml:"name"` Required bool `json:"required" bson:"required"` Type string `json:"type,omitempty" yaml:"type,omitempty"` In string `json:"in" yaml:"in"` Description string `json:"description,omitempty" yaml:"description,omitempty"` Default interface{} `json:"default,omitempty" yaml:"default,omitempty"` Minimum *int `json:"minimum,omitempty" yaml:"minimum,omitempty"` Maximum *int `json:"maximum,omitempty" yaml:"maximum,omitempty"` Enumeration []string `json:"enum,omitempty" yaml:"enum,omitempty"` Schema *Schema `json:"schema,omitempty" yaml:"schema,omitempty"` }
type Path ¶
type Path struct { Summary string `json:"summary,omitempty" yaml:"summary,omitempty"` Description string `json:"description,omitempty" yaml:"description,omitempty"` Get Operation `json:"get,omitempty" yaml:"get,omitempty"` Post Operation `json:"post,omitempty" yaml:"post,omitempty"` Delete Operation `json:"delete,omitempty" yaml:"delete,omitempty"` }