POST api/user/login
{
"username": "string",
"password": "string"
}- Returns a token if the credentials are valid.
GET api/user/user
- Token is optional.
- If the token is present, more detailed user data will be shown.
search={string}
user_group={string}
is_active={boolean}
is_staff={boolean}
is_superuser={boolean}
is_applicable_for={int} when {int} is the community ID.
GET api/user/user/{int}
- Token is optional.
- If the token is present, more detailed user data will be shown.
GET api/user/user/me
PUT api/user/user/{int}
PATCH api/user/user/{int}
{
"email": "string",
"nickname": "string",
"bio": "string",
"profile_picture": "image",
"cover_photo": "image",
"birthdate": "date"
}- Token is required.
- Must be the owner.
GET api/user/email-preference/{int}
- Token is required
- Must be the owner.
GET api/user/email-preference/me
- Token is required.
PUT api/user/email-preference/{int}
PATCH api/user/email-preference/{int}
{
"receive_own_club": "boolean",
"receive_own_event": "boolean",
"receive_own_lab": "boolean",
"receive_other_events": "boolean",
}- Token is required
- Must be the owner.
GET api/user/student-committee
- Token is required
GET api/user/student-committee/{int}
- Token is required
GET api/user/student-committee/me
- Token is required