Compare commits
No commits in common. "7400c5335ddd60ae80d369cacca4d1ba9c4a9e8dc2c314e110f41df696d04f73" and "a8ede765718fb2252442386c16036a73ccd1a286ad8a6553d1cda6125ea819f6" have entirely different histories.
7400c5335d
...
a8ede76571
5 changed files with 30 additions and 34 deletions
2
VERSION
2
VERSION
|
|
@ -1 +1 @@
|
||||||
0.3.6
|
0.3.5
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,6 @@ Returns a channel with id = {id}
|
||||||
{
|
{
|
||||||
"id": "string",
|
"id": "string",
|
||||||
"name": "string",
|
"name": "string",
|
||||||
"description": "string",
|
|
||||||
"communityId": "string",
|
"communityId": "string",
|
||||||
"creationDate": "number"
|
"creationDate": "number"
|
||||||
}
|
}
|
||||||
|
|
@ -37,9 +36,7 @@ Creates a new channel and returns it
|
||||||
{
|
{
|
||||||
"id": "string",
|
"id": "string",
|
||||||
"name": "string",
|
"name": "string",
|
||||||
"description": "string",
|
"communityId": "string"
|
||||||
"communityId": "string",
|
|
||||||
"creationDate": "number"
|
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
@ -51,8 +48,7 @@ _Requires an authorization header_
|
||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"name": "string?",
|
"name": "string?"
|
||||||
"description": "string?"
|
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
@ -64,9 +60,7 @@ Updates a channel with id = {id}
|
||||||
{
|
{
|
||||||
"id": "string",
|
"id": "string",
|
||||||
"name": "string",
|
"name": "string",
|
||||||
"description": "string",
|
"communityId": "string"
|
||||||
"communityId": "string",
|
|
||||||
"creationDate": "number"
|
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -36,8 +36,7 @@ Creates a new community and returns it
|
||||||
"id": "string",
|
"id": "string",
|
||||||
"name": "string",
|
"name": "string",
|
||||||
"description": "string",
|
"description": "string",
|
||||||
"ownerId": "string",
|
"ownerId": "string"
|
||||||
"creationDate": "number"
|
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
@ -62,9 +61,7 @@ Updates a community with id = {id}
|
||||||
{
|
{
|
||||||
"id": "string",
|
"id": "string",
|
||||||
"name": "string",
|
"name": "string",
|
||||||
"description": "string",
|
"description": "string"
|
||||||
"ownerId": "string",
|
|
||||||
"creationDate": "number"
|
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -10,9 +10,25 @@ Returns a role with id = {id}
|
||||||
{
|
{
|
||||||
"id": "string",
|
"id": "string",
|
||||||
"name": "string",
|
"name": "string",
|
||||||
"description": "string",
|
|
||||||
"communityId": "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"
|
"creationDate": "number"
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
@ -39,10 +55,7 @@ Creates a new role and returns it
|
||||||
{
|
{
|
||||||
"id": "string",
|
"id": "string",
|
||||||
"name": "string",
|
"name": "string",
|
||||||
"description": "string",
|
"communityId": "string"
|
||||||
"communityId": "string",
|
|
||||||
"permissions": "string[]",
|
|
||||||
"creationDate": "number"
|
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
@ -55,7 +68,6 @@ _Requires an authorization header_
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"name": "string?",
|
"name": "string?",
|
||||||
"description": "string?",
|
|
||||||
"permissions": "string[]?"
|
"permissions": "string[]?"
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
@ -68,10 +80,8 @@ Updates a role with id = {id}
|
||||||
{
|
{
|
||||||
"id": "string",
|
"id": "string",
|
||||||
"name": "string",
|
"name": "string",
|
||||||
"description": "string",
|
|
||||||
"communityId": "string",
|
"communityId": "string",
|
||||||
"permissions": "string[]",
|
"permissions": "string[]"
|
||||||
"creationDate": "number"
|
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -58,9 +58,7 @@ Creates a new user and returns it
|
||||||
"username": "string",
|
"username": "string",
|
||||||
"email": "string",
|
"email": "string",
|
||||||
"description": "string",
|
"description": "string",
|
||||||
"admin": "boolean",
|
"admin": "boolean"
|
||||||
"registerDate": "number",
|
|
||||||
"lastLogin": "number"
|
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
@ -84,12 +82,8 @@ Updates a user with id = {id}
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"id": "string",
|
"id": "string",
|
||||||
"username": "string",
|
|
||||||
"email": "string",
|
"email": "string",
|
||||||
"description": "string",
|
"description": "string"
|
||||||
"admin": "boolean",
|
|
||||||
"registerDate": "number",
|
|
||||||
"lastLogin": "number"
|
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
@ -141,7 +135,8 @@ Returns all communities for a user with id = {id}
|
||||||
"communities": [
|
"communities": [
|
||||||
{
|
{
|
||||||
"id": "string",
|
"id": "string",
|
||||||
"name": "string"
|
"name": "string",
|
||||||
|
"description": "string"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue