diff --git a/VERSION b/VERSION index 26c6f08..960be68 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.3.6 +0.3.5 diff --git a/docs/api/channel.md b/docs/api/channel.md index c05ff71..0ab4552 100644 --- a/docs/api/channel.md +++ b/docs/api/channel.md @@ -10,7 +10,6 @@ Returns a channel with id = {id} { "id": "string", "name": "string", - "description": "string", "communityId": "string", "creationDate": "number" } @@ -37,9 +36,7 @@ Creates a new channel and returns it { "id": "string", "name": "string", - "description": "string", - "communityId": "string", - "creationDate": "number" + "communityId": "string" } ``` @@ -51,8 +48,7 @@ _Requires an authorization header_ ```json { - "name": "string?", - "description": "string?" + "name": "string?" } ``` @@ -64,9 +60,7 @@ Updates a channel with id = {id} { "id": "string", "name": "string", - "description": "string", - "communityId": "string", - "creationDate": "number" + "communityId": "string" } ``` diff --git a/docs/api/community.md b/docs/api/community.md index 9836f83..5f260ae 100644 --- a/docs/api/community.md +++ b/docs/api/community.md @@ -36,8 +36,7 @@ Creates a new community and returns it "id": "string", "name": "string", "description": "string", - "ownerId": "string", - "creationDate": "number" + "ownerId": "string" } ``` @@ -62,9 +61,7 @@ Updates a community with id = {id} { "id": "string", "name": "string", - "description": "string", - "ownerId": "string", - "creationDate": "number" + "description": "string" } ``` diff --git a/docs/api/role.md b/docs/api/role.md index a5295fe..2e1a51c 100644 --- a/docs/api/role.md +++ b/docs/api/role.md @@ -10,9 +10,25 @@ Returns a role with id = {id} { "id": "string", "name": "string", - "description": "string", "communityId": "string", - "permissions": "string[]", + "creationDate": "number" +} +``` + +## GET /api/v1/role/{id}/permissions + +_Requires an authorization header_ + +Returns a role with id = {id} and permissions + +### Response: + +```json +{ + "id": "string", + "name": "string", + "communityId": "string", + "permissions": "string[]". "creationDate": "number" } ``` @@ -39,10 +55,7 @@ Creates a new role and returns it { "id": "string", "name": "string", - "description": "string", - "communityId": "string", - "permissions": "string[]", - "creationDate": "number" + "communityId": "string" } ``` @@ -55,7 +68,6 @@ _Requires an authorization header_ ```json { "name": "string?", - "description": "string?", "permissions": "string[]?" } ``` @@ -68,10 +80,8 @@ Updates a role with id = {id} { "id": "string", "name": "string", - "description": "string", "communityId": "string", - "permissions": "string[]", - "creationDate": "number" + "permissions": "string[]" } ``` diff --git a/docs/api/user.md b/docs/api/user.md index 2b07130..3c4b8fe 100644 --- a/docs/api/user.md +++ b/docs/api/user.md @@ -58,9 +58,7 @@ Creates a new user and returns it "username": "string", "email": "string", "description": "string", - "admin": "boolean", - "registerDate": "number", - "lastLogin": "number" + "admin": "boolean" } ``` @@ -84,12 +82,8 @@ Updates a user with id = {id} ```json { "id": "string", - "username": "string", "email": "string", - "description": "string", - "admin": "boolean", - "registerDate": "number", - "lastLogin": "number" + "description": "string" } ``` @@ -141,7 +135,8 @@ Returns all communities for a user with id = {id} "communities": [ { "id": "string", - "name": "string" + "name": "string", + "description": "string" } ] }