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