{ "swagger": "2.0", "info": { "description": "Описание.", "title": "Template", "contact": {}, "version": "1.0" }, "host": "localhost", "basePath": "/v2", "paths": { "/api/user/register": { "post": { "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Auth" ], "parameters": [ { "description": "Register user", "name": "input", "in": "body", "required": true, "schema": { "$ref": "#/definitions/register.requestModel" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/register.responseModel" } } } } } }, "definitions": { "register.requestModel": { "type": "object", "required": [ "password" ], "properties": { "email": { "type": "string" }, "login": { "type": "string" }, "password": { "type": "string" } } }, "register.responseModel": { "type": "object", "properties": { "token": { "type": "string" }, "userId": { "type": "string" } } } } }