-
Notifications
You must be signed in to change notification settings - Fork 2
API Specification
Fabian Aronsson edited this page Jan 2, 2024
·
11 revisions
| Path | RequestMethod | RequestParams | RequestBody | QueryParameter | ResponseCodes | ResponseBody | Authorization |
|---|---|---|---|---|---|---|---|
api/rooms |
GET |
RoomId: string RoomName:string
|
- | - | 200 |
IEnumerable<Room> |
Admin |
api/room/create |
POST | - | string |
- | 201, 400 |
Room |
Respective User/Admin |
api/rooms/{roomId} |
GET | Id: string |
- | - | 200, 404 |
Room |
- |
api/users/{email} |
GET | Email: string |
- | - | 200, 400 |
User |
Respective User |
api/users/{email} |
PUT | Email: string |
User |
- | 204, 400 |
User |
Respective User |
api/users/{email} |
DELETE | Email: string |
- | - | 204, 400 |
- | Respective User |
api/rooms/{roomId}/newParticipant |
POST | - | Participant |
- | 201, 400 |
- | - |
api/rooms/{roomId}/participants |
GET | Id: string |
- | - | 200, 400 |
IEnumerable<Participant> |
- |
api/participants/{id} |
PUT | Id: Guid |
Participant |
- | 204, 400 |
Participant |
Respective User & Room Owner |
api/participants/{id} |
DELETE | Id: Guid |
- | - | 204, 400 |
- | Respective User & Room Owner |
api/signup |
POST | - | SignupDto |
- | 201, 400 |
- | - |
api/login |
POST | - | LoginDto |
- | 200, 400 |
- | - |
api/user/username |
POST | - | Username: string |
- | 200, 400, 404 |
UserName: string |
Respective User |