diff --git a/authorization/openapi.yaml b/authorization/openapi.yaml index 57c9c6056de54771a7720240fbc4a56f89d5fcd9..f45af6ac61ac4f39e693029857670db6ebfa8afb 100644 --- a/authorization/openapi.yaml +++ b/authorization/openapi.yaml @@ -109,7 +109,23 @@ paths: description: OK "404": description: Not Found - + /api/login: + put: + tags: + - User + summary: Login to application + description: Login to application + operationId: login + requestBody: + description: Login name and password + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/LoginDto' + responses: + "200": + description: OK components: schemas: DomainEntity: @@ -196,4 +212,20 @@ components: example: john@example.com role: type: string - # TODO: enum \ No newline at end of file + # TODO: enum + LoginDto: + type: object + title: User + description: Represents login information for a user. + required: + - login + - password + properties: + login: + type: string + description: name used for logging in + example: john.doe + password: + type: string + description: password of the user + example: secretPassword \ No newline at end of file