Permissions - THM-ATLAS/spring-backend GitHub Wiki
Exercises
Request\Role | Self | Guest | Student | Teacher | Admin | Module Student | Module Tutor | Module Teacher |
---|---|---|---|---|---|---|---|---|
GET /exercises | X | |||||||
GET /exercises/{exerciseID} | X | X | X | X | ||||
GET /exercises/user/{userID} | X | X | ||||||
GET /exercises/module/{moduleID} | X | X | X | X | ||||
POST /exercises | X | X | X | |||||
PUT /exercises | X | X | X | |||||
DELETE /exercises/{exerciseID} | X | X | X | |||||
GET /exercises/types | X |
Modules
Request\Role | Self | Guest | Student | Teacher | Admin | Module Student | Module Tutor | Module Teacher |
---|---|---|---|---|---|---|---|---|
GET /modules | X | X | X | X | X | X | X | |
GET /modules/{moduleID} | X | X | X | X | X | X | X | |
POST /modules | X | X | ||||||
PUT /modules | X | X | ||||||
DELETE /modules/{moduleID} | X | X | ||||||
GET /modules/users/{moduleID} | X | X | X | |||||
POST /modules/users/{moduleID} | X | X | X | |||||
POST modules/users/multiple/{moduleID} | X | X | ||||||
PUT /modules/users/{moduleID} | X | X | ||||||
DELETE /modules/users/{moduleID}/{userID} | X | X | X | |||||
DELETE /modules/users/{moduleID} | X | X |
Notifications
Request\Role | Self | Guest | Student | Teacher | Admin | Module Student | Module Tutor | Module Teacher |
---|---|---|---|---|---|---|---|---|
GET /notifications/types | X | |||||||
GET /notifications/user/{userID} | X | X | ||||||
GET /notifications/module/{moduleID} | X | X | X | X | ||||
POST /notifications | X | |||||||
POST /notifications/module | X | X | X | |||||
DELETE /notifications/user/{notificationID}/{userID} | X | X | ||||||
DELETE /notification/user/{userID} | X | X | ||||||
DELETE /notification/module/{notificationID}/{moduleID} | X | X | X | |||||
DELETE /notifications/{notificationID} | X |
Ratings
Request\Role | Self | Guest | Student | Teacher | Admin | Module Student | Module Tutor | Module Teacher |
---|---|---|---|---|---|---|---|---|
GET /ratings/exercises/{exerciseID} | X | X | X | |||||
GET /ratings/users/{userID} | X | X | ||||||
GET /ratings/{ratingID} | X | X | X | X | ||||
PUT /ratings | X | X | ||||||
POST /ratings | X | X | ||||||
DELETE /ratings/{ratingID} | X | X |
Roles
Request\Role | Self | Guest | Student | Teacher | Admin | Module Student | Module Tutor | Module Teacher |
---|---|---|---|---|---|---|---|---|
GET /roles | X | X |
Settings
Request\Role | Self | Guest | Student | Teacher | Admin | Module Student | Module Tutor | Module Teacher |
---|---|---|---|---|---|---|---|---|
GET /settings/{userID} | X | X | ||||||
PUT /settings | X | X |
Submissions
Request\Role | Self | Guest | Student | Teacher | Admin | Module Student | Module Tutor | Module Teacher |
---|---|---|---|---|---|---|---|---|
GET /submissions | X | |||||||
GET /exercises/{exerciseID}/submissions | X | X | X | |||||
GET /users/{userID}/submissions | X | X | ||||||
GET /exercises/{exerciseID}/submissions/{submissionID} | X | X | X | X | ||||
PUT /submissions | X | X | ||||||
PUT /submissions/grade | X | X | X | |||||
DELETE /submissions/grade | X | X | X | |||||
POST /submissions | X | X | ||||||
DELETE /submissions/{submissionID} | X | X | X | X |
Tags
Request\Role | Self | Guest | Student | Teacher | Admin | Module Student | Module Tutor | Module Teacher |
---|---|---|---|---|---|---|---|---|
GET /tags | X | X | X | X | X | X | X | X |
GET /exercises/{exerciseID}/tags | X | X | X | X | X | X | X | X |
PUT /tags | X | X | ||||||
POST /tags | X | X | ||||||
POST /exercises/{exerciseID}/{tagID} | X | X | X | |||||
DELETE /tags/{tagID} | X | X | ||||||
DELETE /exercises/{exerciseID}/{tagID} | X | X | X |
Users
Request\Role | Self | Guest | Student | Teacher | Admin | Module Student | Module Tutor | Module Teacher |
---|---|---|---|---|---|---|---|---|
GET /users | X | X | ||||||
GET /users/me | X | |||||||
GET /users/{id} | X | X | X | X | X | X | X | X |
PUT /users | X | X | ||||||
POST /users | X | X | X | X | X | X | X | X |
POST /users/multiple | X | |||||||
DELETE /users/{id} | X | X | ||||||
DELETE /users/multiple | X |
Icons
Request\Role | Self | Guest | Student | Teacher | Admin | Module Student | Module Tutor | Module Teacher |
---|---|---|---|---|---|---|---|---|
GET /icons | X | X | X | X | ||||
POST /icons | X | |||||||
DELETE /icons/{iconID} | X |