1 Star 0 Fork 0

KathentGitee/go-swagger

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
embedded_spec.go 1.96 KB
一键复制 编辑 原始数据 按行查看 历史
// Code generated by go-swagger; DO NOT EDIT.
package restapi
// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command
import (
"encoding/json"
)
var (
// SwaggerJSON embedded version of the swagger document used at generation time
SwaggerJSON json.RawMessage
// FlatSwaggerJSON embedded flattened version of the swagger document used at generation time
FlatSwaggerJSON json.RawMessage
)
func init() {
SwaggerJSON = json.RawMessage([]byte(`{
"swagger": "2.0",
"info": {
"title": "Greeting Server",
"version": "1.0.0"
},
"paths": {
"/hello": {
"get": {
"produces": [
"text/plain"
],
"operationId": "getGreeting",
"parameters": [
{
"type": "string",
"description": "defaults to World if not given",
"name": "name",
"in": "query"
}
],
"responses": {
"200": {
"description": "returns a greeting",
"schema": {
"description": "contains the actual greeting as plain text",
"type": "string"
}
}
}
}
}
}
}`))
FlatSwaggerJSON = json.RawMessage([]byte(`{
"swagger": "2.0",
"info": {
"title": "Greeting Server",
"version": "1.0.0"
},
"paths": {
"/hello": {
"get": {
"produces": [
"text/plain"
],
"operationId": "getGreeting",
"parameters": [
{
"type": "string",
"description": "defaults to World if not given",
"name": "name",
"in": "query"
}
],
"responses": {
"200": {
"description": "returns a greeting",
"schema": {
"description": "contains the actual greeting as plain text",
"type": "string"
}
}
}
}
}
}
}`))
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/kathent/go-swagger.git
git@gitee.com:kathent/go-swagger.git
kathent
go-swagger
go-swagger
v0.19.0

搜索帮助