New endpoints
This commit is contained in:
parent
983623dff2
commit
c37a81e8fd
4 changed files with 80 additions and 10 deletions
|
|
@ -9,10 +9,37 @@ Returns a community with id = {id}
|
|||
"id": "string",
|
||||
"name": "string",
|
||||
"description": "string",
|
||||
"ownerId": "string",
|
||||
"creationDate": 0
|
||||
}
|
||||
```
|
||||
|
||||
## POST /api/v1/community
|
||||
|
||||
_Requires an authorization header_
|
||||
|
||||
### Request:
|
||||
|
||||
```json
|
||||
{
|
||||
"name": "string",
|
||||
"description": "string?"
|
||||
}
|
||||
```
|
||||
|
||||
Creates a new community and returns it
|
||||
|
||||
### Response:
|
||||
|
||||
```json
|
||||
{
|
||||
"id": "string",
|
||||
"name": "string",
|
||||
"description": "string",
|
||||
"ownerId": "string"
|
||||
}
|
||||
```
|
||||
|
||||
## PATCH /api/v1/community/{id}
|
||||
|
||||
_Requires an authorization header_
|
||||
|
|
@ -109,7 +136,6 @@ _Requires an authorization header_
|
|||
|
||||
```json
|
||||
{
|
||||
"creatorId": "string",
|
||||
"totalInvites": "number?",
|
||||
"expirationDate": "number?"
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue