52 lines
794 B
Markdown
52 lines
794 B
Markdown
## GET /api/v1/invite/{id}
|
|
|
|
Returns an invite with id = {id}
|
|
|
|
### Response:
|
|
|
|
```json
|
|
{
|
|
"id": "string",
|
|
"communityId": "string",
|
|
"valid": true,
|
|
"unlimitedInvites": false,
|
|
"hasExpiration": false,
|
|
"totalInvites": 0,
|
|
"remainingInvites": 0,
|
|
"creationDate": 0,
|
|
"expirationDate": 0
|
|
}
|
|
```
|
|
|
|
## DELETE /api/v1/invite/{id}
|
|
|
|
_Requires an authorization header_
|
|
|
|
Removes an invite with id = {id}
|
|
|
|
### Response:
|
|
|
|
```json
|
|
{
|
|
"id": "string",
|
|
"communityId": "string"
|
|
}
|
|
```
|
|
|
|
## GET /api/v1/invite/{id}/accept
|
|
|
|
_Requires an authorization header_
|
|
|
|
Accepts an invite and joins user to a community with id = {id}
|
|
|
|
### Response:
|
|
|
|
```json
|
|
{
|
|
"id": "string",
|
|
"userId": "string",
|
|
"userName": "string",
|
|
"communityId": "string",
|
|
"communityName": "string"
|
|
}
|
|
```
|