Compare commits

..

No commits in common. "7400c5335ddd60ae80d369cacca4d1ba9c4a9e8dc2c314e110f41df696d04f73" and "a8ede765718fb2252442386c16036a73ccd1a286ad8a6553d1cda6125ea819f6" have entirely different histories.

5 changed files with 30 additions and 34 deletions

View file

@ -1 +1 @@
0.3.6
0.3.5

View file

@ -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"
}
```

View file

@ -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"
}
```

View file

@ -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[]"
}
```

View file

@ -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"
}
]
}