Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
beego
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
beego
Commits
da0e6e79
Commit
da0e6e79
authored
Sep 14, 2016
by
Sergey Lanzman
Committed by
GitHub
Sep 14, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update swagger.go
parent
58ffc6f5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
17 deletions
+17
-17
swagger.go
swagger/swagger.go
+17
-17
No files found.
swagger/swagger.go
View file @
da0e6e79
...
...
@@ -22,19 +22,19 @@ package swagger
// Swagger list the resource
type
Swagger
struct
{
SwaggerVersion
string
`json:"swagger,omitempty"`
Infos
Information
`json:"info"`
Host
string
`json:"host,omitempty"`
BasePath
string
`json:"basePath,omitempty"`
Schemes
[]
string
`json:"schemes,omitempty"`
Consumes
[]
string
`json:"consumes,omitempty"`
Produces
[]
string
`json:"produces,omitempty"`
Paths
map
[
string
]
*
Item
`json:"paths"`
Definitions
map
[
string
]
Schema
`json:"definitions,omitempty"`
SecurityDefinitions
map
[
string
]
Scurity
`json:"securityDefinitions,omitempty"`
Security
map
[
string
][]
string
`json:"security,omitempty"`
Tags
[]
Tag
`json:"tags,omitempty"`
ExternalDocs
*
ExternalDocs
`json:"externalDocs,omitempty"`
SwaggerVersion
string
`json:"swagger,omitempty"`
Infos
Information
`json:"info"`
Host
string
`json:"host,omitempty"`
BasePath
string
`json:"basePath,omitempty"`
Schemes
[]
string
`json:"schemes,omitempty"`
Consumes
[]
string
`json:"consumes,omitempty"`
Produces
[]
string
`json:"produces,omitempty"`
Paths
map
[
string
]
*
Item
`json:"paths"`
Definitions
map
[
string
]
Schema
`json:"definitions,omitempty"`
SecurityDefinitions
map
[
string
]
S
e
curity
`json:"securityDefinitions,omitempty"`
Security
map
[
string
][]
string
`json:"security,omitempty"`
Tags
[]
Tag
`json:"tags,omitempty"`
ExternalDocs
*
ExternalDocs
`json:"externalDocs,omitempty"`
}
// Information Provides metadata about the API. The metadata can be used by the clients if needed.
...
...
@@ -44,8 +44,8 @@ type Information struct {
Version
string
`json:"version,omitempty"`
TermsOfService
string
`json:"termsOfService,omitempty"`
Contact
Contact
`json:"contact,omitempty"`
License
License
`json:"license,omitempty"`
Contact
Contact
`json:"contact,omitempty"`
License
*
License
`json:"license,omitempty"`
}
// Contact information for the exposed API.
...
...
@@ -144,8 +144,8 @@ type Response struct {
Ref
string
`json:"$ref,omitempty"`
}
// Scurity Allows the definition of a security scheme that can be used by the operations
type
Scurity
struct
{
// S
e
curity Allows the definition of a security scheme that can be used by the operations
type
S
e
curity
struct
{
Type
string
`json:"type,omitempty"`
// Valid values are "basic", "apiKey" or "oauth2".
Description
string
`json:"description,omitempty"`
Name
string
`json:"name,omitempty"`
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment