diff --git a/VERSION b/VERSION new file mode 100644 index 0000000..165e48d --- /dev/null +++ b/VERSION @@ -0,0 +1 @@ +0.3.1 diff --git a/docs/api/role.md b/docs/api/role.md index 5bbea39..ce360ff 100644 --- a/docs/api/role.md +++ b/docs/api/role.md @@ -40,3 +40,53 @@ Creates a new role and returns it "communityId": "string" } ``` + +## POST /api/v1/role/{id}/assign + +_Requires an authorization header_ + +### Request: + +```json +{ + "userId": "string" +} +``` + +Assigns a role to a user + +### Response: + +```json +{ + "id": "string", + "name": "string", + "communityId": "string", + "userId": "string" +} +``` + +## POST /api/v1/role/{id}/unassign + +_Requires an authorization header_ + +### Request: + +```json +{ + "userId": "string" +} +``` + +Unassigns a role from a user + +### Response: + +```json +{ + "id": "string", + "name": "string", + "communityId": "string", + "userId": "string" +} +```