/
morozgitv
/
booking_go
Обзор
Документация
Войти
/
morozgitv
/
booking_go
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
docs/docs.go
140 строк
4 KB
Artem Morozov
first_commit
15 июл 2026, 18:51
15 июл 2026, 18:51
d6dc8b8
Код
Авторство
О чём код?
// 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": { "/login": { "post": { "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "auth" ], "parameters": [ { "description": "Данные пользователя", "name": "request", "in": "body", "required": true, "schema": { "$ref": "#/definitions/dto.UserRequestAdd" } } ], "responses": { "201": { "description": "Created", "schema": { "$ref": "#/definitions/dto.UserRequestAdd" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/dto.ErrorResponse" } } } } }, "/register": { "post": { "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "auth" ], "parameters": [ { "description": "Данные пользователя", "name": "request", "in": "body", "required": true, "schema": { "$ref": "#/definitions/dto.UserRequestAdd" } } ], "responses": { "201": { "description": "Created", "schema": { "$ref": "#/definitions/dto.UserRequestAdd" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/dto.ErrorResponse" } } } } } }, "definitions": { "dto.ErrorResponse": { "type": "object", "properties": { "error": { "type": "string", "example": "user already exists" } } }, "dto.UserRequestAdd": { "type": "object", "required": [ "email", "password" ], "properties": { "email": { "type": "string" }, "password": { "type": "string", "minLength": 6 } } } } }` // SwaggerInfo holds exported Swagger Info so clients can modify it var SwaggerInfo = &swag.Spec{ Version: "1.0", Host: "localhost:8080", BasePath: "/api/v1", Schemes: []string{}, Title: "Booking Service API", Description: "REST API для сервиса бронирования.", InfoInstanceName: "swagger", SwaggerTemplate: docTemplate, LeftDelim: "{{", RightDelim: "}}", } func init() { swag.Register(SwaggerInfo.InstanceName(), SwaggerInfo) }