Add invitations and joining

This commit is contained in:
Aslan 2025-12-24 05:18:01 -05:00
parent 66b25d5135
commit d1685fde77
4 changed files with 131 additions and 2 deletions

31
docs/api/invite.md Normal file
View 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",
}
```