New endpoints
This commit is contained in:
parent
983623dff2
commit
c37a81e8fd
4 changed files with 80 additions and 10 deletions
|
|
@ -11,6 +11,7 @@ Returns an invite with id = {id}
|
|||
"valid": true,
|
||||
"unlimitedInvites": false,
|
||||
"hasExpiration": false,
|
||||
"totalInvites": 0,
|
||||
"remainingInvites": 0,
|
||||
"creationDate": 0,
|
||||
"expirationDate": 0
|
||||
|
|
@ -32,18 +33,10 @@ Removes an invite with id = {id}
|
|||
}
|
||||
```
|
||||
|
||||
## POST /api/v1/invite/{id}/accept
|
||||
## GET /api/v1/invite/{id}/accept
|
||||
|
||||
_Requires an authorization header_
|
||||
|
||||
### Request:
|
||||
|
||||
```json
|
||||
{
|
||||
"userId": "string"
|
||||
}
|
||||
```
|
||||
|
||||
Accepts an invite and joins user to a community with id = {id}
|
||||
|
||||
### Response:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue