3 Star 2 Fork 0

Gitee 极速下载/go-swagger

Create your Gitee Account
Explore and code with more than 13.5 million developers,Free private repositories !:)
Sign up
文件
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/go-swagger/go-swagger
Clone or Download
embedded_spec.go 1.96 KB
Copy Edit Raw Blame History
// 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/mirrors/go-swagger.git
git@gitee.com:mirrors/go-swagger.git
mirrors
go-swagger
go-swagger
v0.19.0

Search