Library REST API
Complete REST API documentation for a library management system covering books, members, and loans. Demonstrates OAuth2 security with library-specific scopes and ERD lineage to database tables.
The Library API provides endpoints for managing books, members, and loans. This example demonstrates a straightforward domain with ERD lineage from API schemas to database tables, showing the complete loan lifecycle with validation rules.
Book Endpoints
Manage the library book catalogue.
API
List Books
API
Get Book
API
Create Book
Member Endpoints
Manage library members and their information.
API
List Members
API
Get Member
Loan Endpoints
Manage book loans and returns.
API
List Loans
API
Get Loan
API
Create Loan
API
Return Loan
API
Get Member Loans
OAuth2 Library Scopes
| Scope | Description |
|---|---|
| books:read | Read access to book catalogue |
| books:write | Create and update books |
| members:read | Read member information |
| members:write | Create and update members |
| loans:read | View loan records |
| loans:write | Create and manage loans |
| admin | Full administrative access |