Add more services

This commit is contained in:
Aslan 2025-12-29 02:03:47 +01:00
parent 91e22ed95d
commit 36c952fe81
7 changed files with 172 additions and 16 deletions

View file

@ -11,7 +11,7 @@ Returns a channel with id = {id}
"id": "string",
"name": "string",
"communityId": "string",
"creationDate": 0
"creationDate": "number"
}
```
@ -39,3 +39,42 @@ Creates a new channel and returns it
"communityId": "string"
}
```
## PATCH /api/v1/channel/{id}
_Requires an authorization header_
### Request:
```json
{
"name": "string?"
}
```
Updates a channel with id = {id}
### Response:
```json
{
"id": "string",
"name": "string",
"communityId": "string"
}
```
## DELETE /api/v1/channel/{id}
_Requires an authorization header_
Removes a channel with id = {id}
### Response:
```json
{
"id": "string",
"communityId": "string"
}
```