Skip to content
Snippets Groups Projects
Unverified Commit b07b4ee0 authored by Matej Hrica's avatar Matej Hrica
Browse files

Add /api/login endpoint

parent 55f5405a
No related branches found
No related tags found
No related merge requests found
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment