Add more services
This commit is contained in:
parent
91e22ed95d
commit
36c952fe81
7 changed files with 172 additions and 16 deletions
|
|
@ -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"
|
||||
}
|
||||
```
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue