// 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": {}, "version": "{{.Version}}" }, "host": "{{.Host}}", "basePath": "{{.BasePath}}", "paths": { "/auth/login": { "post": { "description": "Логин. Принимает пару юзернейм+пароль.", "consumes": [ "application/json" ], "tags": [ "Auth" ], "summary": "Логин", "parameters": [ { "description": "логин", "name": "login", "in": "body", "required": true, "schema": { "$ref": "#/definitions/auth.loginDTO" } } ], "responses": { "200": { "description": "OK" }, "400": { "description": "Bad Request" }, "500": { "description": "Internal Server Error" } } } }, "/auth/logout": { "post": { "security": [ { "ApiKeyAuth": [] } ], "description": "Логаут. Принимает токен авторизации в заголовке \"Authorization\"", "tags": [ "Auth" ], "summary": "Логаут", "responses": { "200": { "description": "OK" }, "400": { "description": "Bad Request" }, "500": { "description": "Internal Server Error" } } } }, "/auth/me": { "get": { "security": [ { "ApiKeyAuth": [] } ], "description": "Информация о пользователе. Выдается по токену сессии. Без поля пароль.", "tags": [ "Auth" ], "summary": "Информация о пользователе", "responses": { "200": { "description": "OK" }, "400": { "description": "Bad Request" }, "500": { "description": "Internal Server Error" } } } }, "/auth/register": { "post": { "description": "Регистрация", "consumes": [ "application/json" ], "tags": [ "Auth" ], "summary": "Регистрация", "parameters": [ { "description": "Регистрация", "name": "register", "in": "body", "required": true, "schema": { "$ref": "#/definitions/auth.user" } } ], "responses": { "200": { "description": "OK" }, "400": { "description": "Bad Request" }, "500": { "description": "Internal Server Error" } } } } }, "definitions": { "auth.loginDTO": { "type": "object", "properties": { "login": { "type": "string" }, "password": { "type": "string" } } }, "auth.user": { "type": "object", "properties": { "email": { "type": "string" }, "name": { "type": "string" }, "password": { "type": "string" }, "surname": { "type": "string" }, "username": { "type": "string" } } } }, "securityDefinitions": { "ApiKeyAuth": { "description": "Введите \"token\" для аутентификации", "type": "apiKey", "name": "Authorization", "in": "header" } } }` // SwaggerInfo holds exported Swagger Info so clients can modify it var SwaggerInfo = &swag.Spec{ Version: "1.0.0", Host: "", BasePath: "/api", Schemes: []string{}, Title: "Mobile Example API", Description: "", InfoInstanceName: "swagger", SwaggerTemplate: docTemplate, LeftDelim: "{{", RightDelim: "}}", } func init() { swag.Register(SwaggerInfo.InstanceName(), SwaggerInfo) }