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

Add more atributes to user

parent b76682e1
No related branches found
No related tags found
No related merge requests found
......@@ -103,11 +103,12 @@ components:
type: object
title: User
description: Represents a system user.
required:
- id
- firstName
- lastName
properties:
login:
type: string
description: name used for logging in
example: john.doe
required: true
firstName:
type: string
description: first name of a the user
......@@ -116,11 +117,24 @@ components:
type: string
description: last name of a user
example: Doe
email:
type: string
description: email address of the user
example: john@example.com
role:
enum:
- manager
- superadmin
CreationUserDto:
type: object
title: User
description: Represents a user.
properties:
login:
type: string
description: name used for logging in
example: john.doe
required: true
firstName:
type: string
description: first name of a the user
......@@ -130,4 +144,17 @@ components:
type: string
description: last name of a user
example: Doe
required: true
\ No newline at end of file
required: true
password:
type: string
description: password of the user
example: secretPassword
required: true
email:
type: string
description: email address of the user
example: john@example.com
role:
enum:
- manager
- superadmin
\ 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