Invite accept

This commit is contained in:
Aslan 2025-12-26 15:24:12 +01:00
parent f8c5a5521b
commit 6011cefab7
2 changed files with 26 additions and 25 deletions

View file

@ -31,3 +31,29 @@ Removes an invite with id = {id}
"communityId": "string"
}
```
## POST /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:
```json
{
"userId": "string",
"userName": "string",
"communityId": "string",
"communityName": "string",
"inviteId": "string"
}
```