Invite accept
This commit is contained in:
parent
f8c5a5521b
commit
6011cefab7
2 changed files with 26 additions and 25 deletions
|
|
@ -146,28 +146,3 @@ Creates an invite to a community with id = {id}
|
||||||
"communityName": "string"
|
"communityName": "string"
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
## POST /api/v1/community/{id}/join
|
|
||||||
|
|
||||||
_Requires an authorization header_
|
|
||||||
|
|
||||||
### Request:
|
|
||||||
|
|
||||||
```json
|
|
||||||
{
|
|
||||||
"userId": "string"
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
Joins a user to a community with id = {id}
|
|
||||||
|
|
||||||
### Response:
|
|
||||||
|
|
||||||
```json
|
|
||||||
{
|
|
||||||
"userId": "string",
|
|
||||||
"userName": "string",
|
|
||||||
"communityId": "string",
|
|
||||||
"communityName": "string"
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
|
||||||
|
|
@ -31,3 +31,29 @@ Removes an invite with id = {id}
|
||||||
"communityId": "string"
|
"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"
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue