+ openapi: /login, /logout

This commit is contained in:
Simon Zolin 2019-09-11 19:26:37 +03:00
parent 6304a7b91b
commit d2a5a550f7
1 changed files with 39 additions and 1 deletions

View File

@ -932,6 +932,34 @@ paths:
500:
description: "Cannot start the DNS server"
/login:
post:
tags:
- global
operationId: login
summary: "Perform administrator log-in"
consumes:
- application/json
parameters:
- in: "body"
name: "body"
required: true
schema:
$ref: "#/definitions/Login"
responses:
200:
description: OK
/logout:
get:
tags:
- global
operationId: logout
summary: "Perform administrator log-out"
responses:
302:
description: OK
definitions:
ServerStatus:
type: "object"
@ -1673,4 +1701,14 @@ definitions:
password:
type: "string"
description: "Basic auth password"
example: "password"
example: "password"
Login:
type: "object"
description: "Login request data"
properties:
username:
type: "string"
description: "User name"
password:
type: "string"
description: "Password"