pokedex-go/docs/docs.go

102 lines
2.7 KiB
Go

// Package docs Code generated by swaggo/swag. DO NOT EDIT
package docs
import "github.com/swaggo/swag"
const docTemplate = `{
"schemes": {{ marshal .Schemes }},
"swagger": "2.0",
"info": {
"description": "{{escape .Description}}",
"title": "{{.Title}}",
"contact": {
"name": "Brain Baking",
"url": "https://brainbaking.com"
},
"license": {
"name": "MIT",
"url": "https://opensource.org/licenses/MIT"
},
"version": "{{.Version}}"
},
"host": "{{.Host}}",
"basePath": "{{.BasePath}}",
"paths": {
"/pokemon": {
"get": {
"produces": [
"application/json"
],
"summary": "get all Pokemon",
"operationId": "get-all-pokemon",
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/pokemon.Pokemon"
}
}
}
}
}
},
"definitions": {
"pokemon.Move": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"pokemonID": {
"description": "implicit; see https://gorm.io/docs/has_many.html",
"type": "integer"
},
"url": {
"type": "string"
}
}
},
"pokemon.Pokemon": {
"type": "object",
"properties": {
"height": {
"type": "integer"
},
"id": {
"type": "integer"
},
"moves": {
"type": "array",
"items": {
"$ref": "#/definitions/pokemon.Move"
}
},
"name": {
"type": "string"
},
"weight": {
"type": "integer"
}
}
}
}
}`
// SwaggerInfo holds exported Swagger Info so clients can modify it
var SwaggerInfo = &swag.Spec{
Version: "1.0",
Host: "localhost:8080",
BasePath: "/",
Schemes: []string{},
Title: "Pokedex",
Description: "A Pokedex Go Kata",
InfoInstanceName: "swagger",
SwaggerTemplate: docTemplate,
LeftDelim: "{{",
RightDelim: "}}",
}
func init() {
swag.Register(SwaggerInfo.InstanceName(), SwaggerInfo)
}