153 lines · 4.8 KB · Go
RawDownload
// Package docs GENERATED BY THE COMMAND ABOVE; DO NOT EDIT// This file was generated by swaggo/swagpackage docs import "github.com/swaggo/swag" const docTemplate_swagger = `{    "schemes": {{ marshal .Schemes }},    "swagger": "2.0",    "info": {        "description": "{{escape .Description}}",        "title": "{{.Title}}",        "termsOfService": "http://swagger.io/terms/",        "contact": {            "name": "API Support",            "url": "http://www.swagger.io/support",            "email": "support@swagger.io"        },        "license": {            "name": "Apache 2.0",            "url": "http://www.apache.org/licenses/LICENSE-2.0.html"        },        "version": "{{.Version}}"    },    "host": "{{.Host}}",    "basePath": "{{.BasePath}}",    "paths": {        "/testapi/get-string-by-int/{some_id}": {            "get": {                "description": "get string by ID",                "consumes": [                    "application/json"                ],                "produces": [                    "application/json"                ],                "summary": "Add a new pet to the store",                "parameters": [                    {                        "type": "integer",                        "description": "Some ID",                        "name": "some_id",                        "in": "path",                        "required": true                    }                ],                "responses": {                    "200": {                        "description": "ok",                        "schema": {                            "type": "string"                        }                    },                    "400": {                        "description": "We need ID!!",                        "schema": {                            "$ref": "#/definitions/web.APIError"                        }                    },                    "404": {                        "description": "Can not find ID",                        "schema": {                            "$ref": "#/definitions/web.APIError"                        }                    }                }            }        },        "/testapi/get-struct-array-by-string/{some_id}": {            "get": {                "description": "get struct array by ID",                "consumes": [                    "application/json"                ],                "produces": [                    "application/json"                ],                "parameters": [                    {                        "type": "string",                        "description": "Some ID",                        "name": "some_id",                        "in": "path",                        "required": true                    },                    {                        "type": "integer",                        "description": "Offset",                        "name": "offset",                        "in": "query",                        "required": true                    },                    {                        "type": "integer",                        "description": "Offset",                        "name": "limit",                        "in": "query",                        "required": true                    }                ],                "responses": {                    "200": {                        "description": "ok",                        "schema": {                            "type": "string"                        }                    },                    "400": {                        "description": "We need ID!!",                        "schema": {                            "$ref": "#/definitions/web.APIError"                        }                    },                    "404": {                        "description": "Can not find ID",                        "schema": {                            "$ref": "#/definitions/web.APIError"                        }                    }                }            }        }    },    "definitions": {        "web.APIError": {            "type": "object",            "properties": {                "errorCode": {                    "type": "integer"                },                "errorMessage": {                    "type": "string"                }            }        }    }}` // SwaggerInfo_swagger holds exported Swagger Info so clients can modify itvar SwaggerInfo_swagger = &swag.Spec{	Version:          "1.0",	Host:             "petstore.swagger.io:8080",	BasePath:         "/v2",	Schemes:          []string{},	Title:            "Swagger Example API",	Description:      "This is a sample server Petstore server.",	InfoInstanceName: "swagger",	SwaggerTemplate:  docTemplate_swagger,} func init() {	swag.Register(SwaggerInfo_swagger.InstanceName(), SwaggerInfo_swagger)}

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t