Add invitations and joining
This commit is contained in:
parent
66b25d5135
commit
d1685fde77
4 changed files with 131 additions and 2 deletions
31
docs/api/invite.md
Normal file
31
docs/api/invite.md
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
## GET /api/v1/invite/{id}
|
||||
*Requires an authentication header*
|
||||
|
||||
Returns an invite with id = {id}
|
||||
|
||||
### Response:
|
||||
```json
|
||||
{
|
||||
"id": "string",
|
||||
"communityId": "string",
|
||||
"valid": true,
|
||||
"unlimitedInvites": false,
|
||||
"hasExpiration": false,
|
||||
"remainingInvites": 0,
|
||||
"creationDate": 0,
|
||||
"expirationDate": 0
|
||||
}
|
||||
```
|
||||
|
||||
## DELETE /api/v1/invite/{id}
|
||||
*Requires an authentication header*
|
||||
|
||||
Removes an invite with id = {id}
|
||||
|
||||
### Response:
|
||||
```json
|
||||
{
|
||||
"id": "string",
|
||||
"communityId": "string",
|
||||
}
|
||||
```
|
||||
Loading…
Add table
Add a link
Reference in a new issue