diff --git a/openapi/openapi.yaml b/openapi/openapi.yaml index fa36fac9..8febe107 100644 --- a/openapi/openapi.yaml +++ b/openapi/openapi.yaml @@ -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" \ No newline at end of file + example: "password" + Login: + type: "object" + description: "Login request data" + properties: + username: + type: "string" + description: "User name" + password: + type: "string" + description: "Password"