User Endpoints¶
Get User¶
1 |
|
Find information about the currently authenticated user. Possible status code responses are 200 Success and 404 Not Found.
Get Given User¶
1 |
|
Find information on the user with the username supplied as a url query parameter or the current user. Status code responses are 200 Success, 400 Bad Request, 403 Forbidden and 404 Not Found.
Update Given User¶
1 |
|
Updates the user with the information in GirafRest.Models.DTOs.GirafUserDTO Example user PUT request body:
1 2 3 4 5 |
|
Status code responses are 200 Success, 400 Bad Request, 403 Forbidden, 404 Not Found and 409 Conflict.
Get Given User-settings¶
1 |
|
Get user-settings for the user with the specified Id Status code responses are 200 Success, 400 Bad Request, 403 Forbidden and 404 Not Found.
Update Given User-settings¶
1 |
|
Updates the user settings for the user with the provided id. Example user-setting PUT request body:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
|
Status code responses are 200 Success, 400 Bad Request, 403 Forbidden and 404 Not Found.
Get Given User Icon¶
1 |
|
Endpoint for getting the UserIcon for a specific User- Possible status code responses are 200 Success and 404 Not found.
Update Given User Icon¶
1 |
|
Sets the user icon of the given user. Status code responses are 200 Success, 400 Bad Request, 403 Forbidden and 404 Not Found.
Delete Given User Icon¶
1 |
|
Deletes the user icon for a given user. Status code responses are 200 Success, 400 Bad Request, 403 Forbidden and 404 Not Found.
Get Given Raw User Icon¶
1 |
|
Gets the raw user icon for a given user. Status code responses are 200 Success and 404 Not Found.
Get Given User's Citizens¶
1 |
|
Gets the citizens of the user with the provided id. The provided user must be a guardian. Status code responses are 200 Success, 400 Bad Request, 403 Forbidden and 404 Not Found.
Get Given User's Guardians¶
1 |
|
Gets the guardians for the specific citizen corresponding to the provided id. Status code responses are 200 Success, 400 Bad Request, 403 Forbidden and 404 Not Found.
Create Relation Between Guardian and Citizen¶
1 |
|
POST request to add a relation between the authenticated user (guardian) and an existing citizen. Status code responses are 200 Success, 403 Forbidden and 404 Not Found.