docs: Update documentation for role-based access control

- Update README.md with admin system documentation
- Add admin setup instructions and role permissions
- Update API endpoint documentation with access requirements
- Update Bruno collection to reflect admin-only operations
- Document shared library concept and security model
- Add comprehensive admin setup guide
This commit is contained in:
2026-01-26 16:56:35 -05:00
parent f8eaca1b08
commit 48b6796bcd
5 changed files with 104 additions and 43 deletions
+6 -3
View File
@@ -46,9 +46,9 @@ settings {
docs {
## Create Ebook
Creates a new ebook entry in the library.
Creates a new ebook entry in the library. **Admin only operation.**
**Authentication:** Required (Bearer token)
**Authentication:** Required (Bearer token + Admin role)
**Request Body:**
- `title` (string, required): Book title
@@ -67,9 +67,12 @@ docs {
- `publisher` (string, optional): Publisher name
- `contributors` (string, optional): Additional contributors
**Response:** Created ebook object
**Response:** Created ebook object (with added_by_admin_id field)
**Error Responses:**
- 401: Invalid authentication
- 403: Forbidden (non-admin users)
- 400: Invalid request data
**Note:** Ebook will be automatically associated with the admin user who creates it.
}