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