New endpoints
This commit is contained in:
parent
983623dff2
commit
c37a81e8fd
4 changed files with 80 additions and 10 deletions
|
|
@ -14,3 +14,29 @@ Returns a role with id = {id}
|
|||
"creationDate": 0
|
||||
}
|
||||
```
|
||||
|
||||
## POST /api/v1/role
|
||||
|
||||
_Requires an authorization header_
|
||||
|
||||
### Request:
|
||||
|
||||
```json
|
||||
{
|
||||
"name": "string",
|
||||
"communityId": "string",
|
||||
"permissions": "string[]"
|
||||
}
|
||||
```
|
||||
|
||||
Creates a new role and returns it
|
||||
|
||||
### Response:
|
||||
|
||||
```json
|
||||
{
|
||||
"id": "string",
|
||||
"name": "string",
|
||||
"communityId": "string"
|
||||
}
|
||||
```
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue