RESTful API with the following resources
- Books
- Authors
- Book-Loans
- Users
The purpose of the API is to provide a management system for a library. There are two types of users in a Library.
-
Library Member Browse books, authors, request and view Book-Loans
-
Library Admin Create, update, remove Books and Authors. Accepet, reject Book-Loan requests. Update Book-Loan when book is returned In addtion to providing the basic RESTful API endpoints and their role based access specified above, API should also have the following features
-
Token Based Authentication (timeout can be as much as wish) Profile image upload for users (store image anywhere like) Browse books by author Excel export for Book-Loans data (only Library Admin) Implementation It is required to implement the API using the either Django or NodeJs and any database(relational, nosql etc) of choice
- Mandatory
- Fast response time. No endpoint should have a response time over 1 second regardless of the data size
- Appropriate status codes with all the responses.
- Good To Have 1.Proper and easy to understand naming of variables, function and classes
- Clear and to the point commenting of code Code for testing the API
- Good common sense in selecting fields for the resources