diff --git a/docs/api/community.md b/docs/api/community.md index 176bca1..45482a8 100644 --- a/docs/api/community.md +++ b/docs/api/community.md @@ -146,28 +146,3 @@ Creates an invite to a community with id = {id} "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" -} -``` diff --git a/docs/api/invite.md b/docs/api/invite.md index 647775b..9659e97 100644 --- a/docs/api/invite.md +++ b/docs/api/invite.md @@ -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" +} +```