45 lines
873 B
YAML
45 lines
873 B
YAML
basePath: /v1
|
|
definitions:
|
|
auth.AuthBody:
|
|
properties:
|
|
email:
|
|
example: john@proton.mail
|
|
type: string
|
|
password:
|
|
example: Aasdfgh1!
|
|
type: string
|
|
required:
|
|
- email
|
|
- password
|
|
type: object
|
|
info:
|
|
contact:
|
|
name: https://peresvet.it
|
|
title: System Trace API
|
|
version: "1.0"
|
|
paths:
|
|
/auth/login:
|
|
post:
|
|
description: Returns pair of access and refresh tokens
|
|
parameters:
|
|
- description: Request body
|
|
in: body
|
|
name: request
|
|
required: true
|
|
schema:
|
|
$ref: '#/definitions/auth.AuthBody'
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
summary: Request pair of tokens
|
|
tags:
|
|
- auth
|
|
securityDefinitions:
|
|
Bearer:
|
|
in: header
|
|
name: Authorization
|
|
type: apiKey
|
|
swagger: "2.0"
|