+ openapi: /login, /logout
This commit is contained in:
parent
6304a7b91b
commit
d2a5a550f7
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue