-
Notifications
You must be signed in to change notification settings - Fork 0
Users
Umut Emre Bayramoglu edited this page Aug 27, 2020
·
6 revisions
All user objects have the following fields.
Field | Type | Description |
---|---|---|
id | long | User id |
username | string | Username |
name | string | Name of user |
surname | string | Surname of user |
string | User email | |
enrolled_date | date | User enrolled date |
profile_pic | string | User profile picture url |
authorities | set of authority | Authorities that the user has. |
created_events | set of event | Created events by the user |
questions | set of event user question | Questions asked by the user |
event_questionnaire_selection | set of event questionnaire selection | Selections made by the user for the event questionnaire question. |
user_events | set of userEvent | An userEvent object matches user with events that user participated in. It also includes the participation date. |
{
"id": 3,
"username": "admin",
"name": "Umut Emre",
"surName": "Bayramoglu",
"email": "dsfsdsgsdad@gmail.com",
"enrolledDate": "2020-08-27T19:02:56.372+00:00",
"profilePic": "1.jpg",
"authorities": [
{
"id": 1,
"authority": "WRITE"
},
{
"id": 2,
"authority": "READ"
}
],
"createdEvents": [],
"enabled": true,
"credentialsNonExpired": true,
"accountNonExpired": false,
"accountNonLocked": true
}
GET /profile
Returns authenticated user object.
GET /users/{username}/events
Returns set of events created by the user with given username.