Files
webserv/pkg/swaginfo/docs.go
Олег Бородин e18bc7beef initial import
2024-01-16 09:02:47 +02:00

107 lines
3.2 KiB
Go

// Package swaginfo Code generated by swaggo/swag at 2024-01-15 20:44:26.674071397 +0200 EET m=+1.054493538. DO NOT EDIT
package swaginfo
import "github.com/swaggo/swag"
const docTemplate = `{
"schemes": {{ marshal .Schemes }},
"swagger": "2.0",
"info": {
"description": "{{escape .Description}}",
"title": "{{.Title}}",
"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": {
"/user/create": {
"post": {
"description": "Create user for service",
"consumes": [
"application/x-www-form-urlencoded"
],
"produces": [
"application/json"
],
"tags": [
"user"
],
"summary": "Create user",
"parameters": [
{
"type": "string",
"default": "user01",
"description": "User name",
"name": "username",
"in": "formData",
"required": true
},
{
"type": "array",
"format": "[]byte",
"items": {
"type": "string"
},
"collectionFormat": "multi",
"description": "Grants list",
"name": "grants",
"in": "formData",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/webserv_internal_logic.CreateUserResult"
}
}
}
}
}
},
"definitions": {
"webserv_internal_logic.CreateUserResult": {
"type": "object",
"properties": {
"grants": {
"type": "array",
"items": {
"type": "string"
}
},
"username": {
"type": "string"
}
}
}
}
}`
// SwaggerInfo holds exported Swagger Info so clients can modify it
var SwaggerInfo = &swag.Spec{
Version: "1.0",
Host: "localhost",
BasePath: "/api/v1",
Schemes: []string{"http", "https"},
Title: "Service API",
Description: "API documentation",
InfoInstanceName: "swagger",
SwaggerTemplate: docTemplate,
LeftDelim: "{{",
RightDelim: "}}",
}
func init() {
swag.Register(SwaggerInfo.InstanceName(), SwaggerInfo)
}