New endpoints

This commit is contained in:
Aslan 2025-12-28 04:29:04 +01:00
parent 983623dff2
commit c37a81e8fd
4 changed files with 80 additions and 10 deletions

View file

@ -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: