Admin API Documentation¶
Table of Contents¶
Introduction¶
This document provides detailed API documentation for the admin page. it includes endpoints for retrieving users, updating users and deleting users.
Admin Controller¶
| Method | Endpoint | Description |
|---|---|---|
| GET | /admin/results/account-management/{username}" |
Retrieves the full user for the given username |
| POST | /admin/results/account-management/update-user |
Updates the user with the full given user with new credentials. |
| DELETE | /admin/results/account-management/delete-user/{id} |
Deletes the user for the given userId |
GET /admin/results/account-management/{username}
- Path Variable: username (String) – username of the user that is being looked up.
- Response: The full User class.
- Example:
POST /admin/results/account-management/update-user
- Body: User object.
- Response: saved user object.
DELETE /admin/results/account-management/delete-user/{id}
- Path Variable: id (Long) – userId that will get deleted.
- Response: User that get’s deleted
- Example: