mirror of
https://github.com/astaxie/beego.git
synced 2025-06-21 06:30:17 +00:00
Revert "Merge pull request #4325 from flycash/revert1"
This reverts commitfad897346f
, reversing changes made toe284b0ddae
.
This commit is contained in:
.github/workflows
.gitignore.travis.ymlCONTRIBUTING.mdREADME.mdadapter
admin.goapp.gobeego.gobuild_info.gopolicy.gorouter.go
admin.goadmin_test.goapp.gobuild_info.gocache
config.goconfig
context
controller.godoc.goerror.gofilter.goflash.gofs.gograce
httplib
log.gologs
metric
migration
namespace.goorm
cmd.godb.godb_alias.gomodels.gomodels_boot.gomodels_fields.goorm.goorm_conds.goorm_log.goorm_queryset.goqb.goqb_mysql.goqb_tidb.goquery_setter_adapter.gotypes.goutils.goutils_test.go
plugins
apiauth
auth
authz
cors
session
couchbase
ledis
memcache
mysql
postgres
provider_adapter.goredis
redis_cluster
redis_sentinel
sess_cookie.gosess_cookie_test.gosess_file.gosess_file_test.gosess_mem.gosess_mem_test.gosess_test.gosess_utils.gosession.gossdb
store_adapter.goswagger
template.gotemplatefunc.gotemplatefunc_test.gotesting
toolbox
tree.gotree_test.goutils
caller.gocaller_test.go
captcha
debug.godebug_test.gofile.gomail.gomail_test.gopagination
rand.gorand_test.gosafemap.gosafemap_test.goslice.goslice_test.goutils.govalidation
client
cache
httplib
orm
README.mdcmd.gocmd_utils.godb.godb_alias.godb_alias_test.godb_mysql.godb_oracle.godb_postgres.godb_sqlite.godb_tables.godb_tidb.godb_utils.godo_nothing_orm.godo_nothing_orm_test.gofilter.gofilter_orm_decorator.gofilter_orm_decorator_test.gofilter_test.go
filter
bean
opentracing
prometheus
hints
invocation.gomigration
model_utils_test.gomodels.gomodels_boot.gomodels_fields.gomodels_info_f.gomodels_info_m.gomodels_test.gomodels_utils.gomodels_utils_test.goorm.goorm_conds.goorm_log.goorm_object.goorm_querym2m.goorm_queryset.goorm_raw.goorm_test.goqb.goqb_mysql.goqb_postgres.goqb_tidb.gotypes.goutils.goutils_test.gocore
bean
context.godoc.gofactory.gometadata.gotag_auto_wire_bean_factory.gotag_auto_wire_bean_factory_test.gotime_type_adapter.gotime_type_adapter_test.gotype_adapter.go
config
base_config_test.goconfig.goconfig_test.go
env
error.goetcd
fake.goglobal.goglobal_test.goini.goini_test.gojson
toml
xml
yaml
governor
logs
README.mdaccess_log.goaccess_log_test.go
alils
alils.goconfig.golog.pb.golog_config.golog_project.golog_store.gomachine_group.gorequest.gosignature.go
conn.goconn_test.goconsole.goconsole_test.goes
file.gofile_test.goformatter.goformatter_test.gojianliao.gojianliao_test.golog.golog_msg.golog_msg_test.golog_test.gologger.gologger_test.gomultifile.gomultifile_test.goslack.gosmtp.gosmtp_test.goutils
caller.gocaller_test.godebug.godebug_test.gofile.gofile_test.gokv.gokv_test.gomail.gomail_test.go
pagination
rand.gorand_test.gosafemap.gosafemap_test.goslice.goslice_test.gotestdata
time.goutils.goutils_test.govalidation
logs
orm
scripts
server/web
LICENSEadmin.goadmin_controller.goadmin_test.goadminui.gobeego.gofilter_chain_test.gofilter_test.goflash.goflash_test.gofs.go
captcha
config.goconfig_test.gocontext
acceptencoder.goacceptencoder_test.gocontext.gocontext_test.goinput.goinput_test.gooutput.go
controller.gocontroller_test.godoc.goerror.goerror_test.gofilter.goparam
renderer.goresponse.gofilter
apiauth
auth
authz
cors
opentracing
prometheus
grace
hooks.gomime.gonamespace.gonamespace_test.gopagination
parser.gopolicy.gorouter.gorouter_test.goserver.goserver_test.gosession
README.md
staticfile.gostaticfile_test.gostatistics.gostatistics_test.gocouchbase
ledis
memcache
mysql
postgres
redis
redis_cluster
redis_sentinel
sess_cookie.gosess_cookie_test.gosess_file.gosess_file_test.gosess_mem.gosess_mem_test.gosess_test.gosess_utils.gosession.gossdb
swagger
template.gotemplate_test.gotemplatefunc.gotemplatefunc_test.gotree.gotree_test.gounregroute_test.gotask
test
68
adapter/swagger/swagger.go
Normal file
68
adapter/swagger/swagger.go
Normal file
@ -0,0 +1,68 @@
|
||||
// Copyright 2014 beego Author. All Rights Reserved.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
//
|
||||
// Swagger™ is a project used to describe and document RESTful APIs.
|
||||
//
|
||||
// The Swagger specification defines a set of files required to describe such an API. These files can then be used by the Swagger-UI project to display the API and Swagger-Codegen to generate clients in various languages. Additional utilities can also take advantage of the resulting files, such as testing tools.
|
||||
// Now in version 2.0, Swagger is more enabling than ever. And it's 100% open source software.
|
||||
|
||||
// Package swagger struct definition
|
||||
package swagger
|
||||
|
||||
import (
|
||||
"github.com/astaxie/beego/server/web/swagger"
|
||||
)
|
||||
|
||||
// Swagger list the resource
|
||||
type Swagger swagger.Swagger
|
||||
|
||||
// Information Provides metadata about the API. The metadata can be used by the clients if needed.
|
||||
type Information swagger.Information
|
||||
|
||||
// Contact information for the exposed API.
|
||||
type Contact swagger.Contact
|
||||
|
||||
// License information for the exposed API.
|
||||
type License swagger.License
|
||||
|
||||
// Item Describes the operations available on a single path.
|
||||
type Item swagger.Item
|
||||
|
||||
// Operation Describes a single API operation on a path.
|
||||
type Operation swagger.Operation
|
||||
|
||||
// Parameter Describes a single operation parameter.
|
||||
type Parameter swagger.Parameter
|
||||
|
||||
// ParameterItems A limited subset of JSON-Schema's items object. It is used by parameter definitions that are not located in "body".
|
||||
// http://swagger.io/specification/#itemsObject
|
||||
type ParameterItems swagger.ParameterItems
|
||||
|
||||
// Schema Object allows the definition of input and output data types.
|
||||
type Schema swagger.Schema
|
||||
|
||||
// Propertie are taken from the JSON Schema definition but their definitions were adjusted to the Swagger Specification
|
||||
type Propertie swagger.Propertie
|
||||
|
||||
// Response as they are returned from executing this operation.
|
||||
type Response swagger.Response
|
||||
|
||||
// Security Allows the definition of a security scheme that can be used by the operations
|
||||
type Security swagger.Security
|
||||
|
||||
// Tag Allows adding meta data to a single tag that is used by the Operation Object
|
||||
type Tag swagger.Tag
|
||||
|
||||
// ExternalDocs include Additional external documentation
|
||||
type ExternalDocs swagger.ExternalDocs
|
Reference in New Issue
Block a user