Download OpenAPI specification:Download
This microservice is used to access informations about books. In particular, this microservice expose API with functionality that let you add new books, add a personal library and let you register RFIDs associated to a defined book.
Create a new book, using the values passed.
Create a new book in the system
email_esecutore | string |
Libro | object |
{ "email_esecutore": "string", "Libro": { "ISBN": "string", "Titolo?": "string", "Autore?": "string", "Data_Pubblicazione?": { "Day": "integer", "Month": "integer", "Year": "integer" } } }
{ "message": "Booked added successfully." }
Create a library associated with an email of a user
Create a new library in the system
message | string |
message2 | string |
{ "message": "email." }
{ "message": "Libreria created successfully." }
Create a RFID associated to an ISBN and the library of the user
Create a new RFID in the system
ISBN | string |
RFID | string |
emailCompratore | string |
{ "ISBN": "string", "RFID": "string", "emailCompratore": "string" }
{ "message": "Cannot add the library." }
Get the informations of a specified book with given ISBN
ISBN required | string ISBN of the book you are looking for |
{ "ISBN": "string", "Titolo": "string", "Autore": "string", "Data_Pubblicazione": { "Day": "integer", "Month": "integer", "Year": "integer" } }
Get the informations of a specified copy passed by RFID
RFID required | string RFID of the copy you are looking for |
{ "ISBN": "string", "RFID": "string", "ID_Libreria": "integer", "Email_Proprietario": "string" }
Change the email of a library.
IMPORTANT-> Never use this functionality for changing the email. Use the one from the Access microservice
Change the email in the library
message | string |
message2 | string |
{ "message": "email" }
{ "message": "Email changed successfully." }
Remove a specified library from the system
Remove the library given a specified email
message | string |
message2 | string |
{ "message": "email" }
{ "message": "Library removed successfully." }
Remove a specified RFID from the system
Remove the RFID given
message | string |
message2 | string |
{ "message": "RFID" }
{ "message": "RFID removed successfully." }
Remove all the registered RFID associated with a given email
Remove all RFID of an email
message | string |
message2 | string |
{ "message": "email" }
{ "message": "RFIDs removed successfully." }
Remove a book, specified by ISBN, from the system
Remove a book
message | string |
message2 | string |
{ "email_esecutore": "string", "Libro": { "ISBN": "string", "Titolo?": "string", "Autore?": "string", "Data_Pubblicazione?": { "Day": "integer", "Month": "integer", "Year": "integer" } } }
{ "message": "Book removed successfully." }
Remove all books, specified by author parameter, from the system
Remove all books of an author
message | string |
message2 | string |
{ "message": "email" }
{ "message": "Books removed successfully." }