API Documentation
This library has a RESTful API built with Django Ninja. You can interact with the library data programmatically.
Interactive API Documentation
Visit the interactive API documentation to test all endpoints directly in your browser.
Available Endpoints
Tutorial Endpoints
- GET /api/hello - Simple hello world endpoint
- POST /api/hello - Hello with custom name
- GET /api/add?a=5&b=3 - Add two numbers
Books API
- GET /api/books - List all books
- GET /api/books/{id} - Get a specific book
- POST /api/books - Create a new book
- PUT /api/books/{id} - Update a book
- DELETE /api/books/{id} - Delete a book
Authors API
- GET /api/authors - List all authors
- GET /api/authors/{id} - Get a specific author
- POST /api/authors - Create a new author
- PUT /api/authors/{id} - Update an author
- DELETE /api/authors/{id} - Delete an author
Genres API
- GET /api/genres - List all genres
- GET /api/genres/{id} - Get a specific genre
- POST /api/genres - Create a new genre
- PUT /api/genres/{id} - Update a genre
- DELETE /api/genres/{id} - Delete a genre
Book Instances API
- GET /api/bookinstances - List all book instances
- GET /api/bookinstances/{id} - Get a specific instance
- POST /api/bookinstances - Create a new instance
- PUT /api/bookinstances/{id} - Update an instance
- DELETE /api/bookinstances/{id} - Delete an instance
Quick Test