Create a Library.
A simple java application will be used to test this, so please use the end-points provided.
Everything should be done in rest, and a simple database will be setup with some basic info for testing.
Library - Core service for handling everything.
Book - Holds book id.
BookInfo - Holds book title, description.
Price - Holds price of the book
Status - Holds status (bought OR loaned OR none)
- /API/All
Returns all of the books, with their information and including price, and status.
- /API/Book/{id}
Returns all the information on a selected book.
- /API/Price/{id}
Returns the price of a specific book.
- /API/Info/{id}
Returns the info of a specific book.
- /API/Status/{id}
Retuns the status of a specific book.
- /API/All/Loaned
Returns all the books on loan.
- /API/All/Bought
Returns all the bought books.
- /API/All
Returns all the books we know of.
- /API/Add
Adds a book (takes no information)
- /API/All
Returns all books and their Name and Description.
- /API/Book/{id}
Returns the information of a specific book.
- /API/Add
Adds a new book info. (Takes name and description)
- /API/All
Returns all prices of all books.
- /API/Price/{id}
Returns the price of a specific book.
- /API/Add
Adds a new price. (Takes price)
- /API/All
Returns all the statuses of all the books.
- /API/Book/{id}
Returns the status of a specific book.
- /API/Add
Adds new status (Takes status as input)
All must use their own table in a database.
The Library
service must not use any databases...
None of them should communicate with eachother.
This is what the data should look like for each Book.
{
"id" : 1,
"title" : "The Communist Manifesto",
"description": "The Communist Manifesto (1848), Marx and Engels's revolutionary summons to the working classes, is one of the most important and influential political polemics ever written.",
"status": "none",
"price": 12.95
}