/
bi01
/
hashing_service
Обзор
Документация
Войти
/
bi01
/
hashing_service
Код
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
docs/docs.go
136 строк
4 KB
Oleg Biryukov
Create /api/hashing/line:? endpoint.
15 июл 2024, 12:03
15 июл 2024, 12:03
5b7c017
Код
Авторство
О чём код?
// 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": { "/hashing": { "get": { "description": "Hashing string line from GET request", "produces": [ "text/plain" ], "tags": [ "api" ], "summary": "HashingLine endpoint", "operationId": "/hashing", "parameters": [ { "description": "string line", "name": "line", "in": "body", "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "schema": { "type": "object", "additionalProperties": true } }, "400": { "description": "Bad Request", "schema": {} }, "503": { "description": "Service Unavailable", "schema": {} } } } }, "/health": { "get": { "description": "Check avalaibility Redis, RabbitMQ probes", "produces": [ "application/json" ], "tags": [ "services routes" ], "summary": "K8s ReadinessProbe endpoint", "operationId": "/health", "responses": { "200": { "description": "OK", "schema": { "type": "object", "additionalProperties": true } }, "default": { "description": "", "schema": {} } } } }, "/version": { "get": { "description": "Version endpoint", "produces": [ "application/json" ], "tags": [ "services routes" ], "summary": "Version endpoint", "operationId": "/version", "responses": { "200": { "description": "OK", "schema": { "type": "object", "additionalProperties": true } }, "default": { "description": "", "schema": {} } } } } }, "securityDefinitions": { "ApiKeyAuth": { "type": "apiKey", "name": "Authorization(Authorization).", "in": "header" } } }` // SwaggerInfo holds exported Swagger Info so clients can modify it var SwaggerInfo = &swag.Spec{ Version: "2.0", Host: "", BasePath: "/api/", Schemes: []string{"http"}, Title: "Hashing API Service", Description: "This is a swagger for Hashing API", InfoInstanceName: "swagger", SwaggerTemplate: docTemplate, LeftDelim: "{{", RightDelim: "}}", } func init() { swag.Register(SwaggerInfo.InstanceName(), SwaggerInfo) }