mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-08-07 23:03:00 +03:00
Added role API responses & requests
Also applied other slight tweaks and comment updates based upon manual endpoint testing.
This commit is contained in:
11
dev/api/requests/roles-create.json
Normal file
11
dev/api/requests/roles-create.json
Normal file
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"display_name": "Book Maintainer",
|
||||
"description": "People who maintain books",
|
||||
"mfa_enforced": true,
|
||||
"permissions": [
|
||||
"book-view-all",
|
||||
"book-update-all",
|
||||
"book-delete-all",
|
||||
"restrictions-manage-all"
|
||||
]
|
||||
}
|
14
dev/api/requests/roles-update.json
Normal file
14
dev/api/requests/roles-update.json
Normal file
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"display_name": "Book & Shelf Maintainers",
|
||||
"description": "All those who maintain books & shelves",
|
||||
"mfa_enforced": false,
|
||||
"permissions": [
|
||||
"book-view-all",
|
||||
"book-update-all",
|
||||
"book-delete-all",
|
||||
"bookshelf-view-all",
|
||||
"bookshelf-update-all",
|
||||
"bookshelf-delete-all",
|
||||
"restrictions-manage-all"
|
||||
]
|
||||
}
|
Reference in New Issue
Block a user