-
Notifications
You must be signed in to change notification settings - Fork 0
API
Alexander Van Oyen edited this page Feb 20, 2024
·
27 revisions
We will probably be using swagger/openAPI for our API implementation.
(Work in progress)
(Admins should be able to perform every request, they will have no restrictions.)
Method | Endpoint | Description |
---|---|---|
POST | /user | create a new user |
Method | Endpoint | Description |
---|---|---|
POST | /subject | create a new subject |
DELETE | /subject/{subject_id} | delete subject with given id |
PUT | /subject/{subject_id} | update subject data |
Method | Endpoint | Description |
---|---|---|
DELETE | /user/{userid} | remove the user (can only remove themself) |
PUT | /user/{userid} | update user data (can only update own data) |