Closed justJavaProgrammer closed 5 months ago
Create a new endpoint to return profile info about the user by ID.
Request
GET /users/{user_id}
Query parameters:
Structure of response:
Status:
Response body:
display_name - user's name that will be displayed
email - user's email address
birthdate - user's birthdate in format yyyy-MM-dd
gender - user's gender
id - user's id in Sonata system
uri - context uri of the user, format: 'sonata:user:miku', where 'miku' is a user's id.
country - user's country
User info should be saved in Postgres database
Acceptance criteria:
Create a new endpoint to return profile info about the user by ID.
Request
Query parameters:
Structure of response:
Status:
Response body:
display_name - user's name that will be displayed
email - user's email address
birthdate - user's birthdate in format yyyy-MM-dd
gender - user's gender
id - user's id in Sonata system
uri - context uri of the user, format: 'sonata:user:miku', where 'miku' is a user's id.
country - user's country
User info should be saved in Postgres database
Acceptance criteria: