- Please refer to docker_script and dockerized_mysql_redis_setup.md , for MySQL database and redis setup.
Postman Collections: library-system-managment.postman_collection.json
- Method: GET
- URL:
{{base_url}}/api/books/retrieveAll
- Description: Retrieves a list of all books.
- Method: POST
- URL:
{{base_url}}/api/books/create
- Body:
{ "title": "Book Title v4", "authorFirstName": "firstName", "authorLastName": "lastName", "isbn": "978-1-6112-2991-4" }
- Description: Creates a new book with the given details.
- Method: GET
- URL:
{{base_url}}/api/books/retrieve/{bookId}
- Description: Retrieves details of a book by its ID.
- Method: PUT
- URL:
{{base_url}}/api/books/update/{bookId}
- Body:
{ "bookId": "b4c178de-1fb9-4269-b71d-093a0634ba89", "title": "Book Title v3.0", "authorFirstName": "Toe", "authorLastName": "Arkar", "isbn": "978-1-6112-2991-3" }
- Description: Updates the details of a book by its ID.
- Method: DELETE
- URL:
{{base_url}}/api/books/delete/{bookId}
- Description: Deletes a book by its ID.
- Method: POST
- URL:
{{base_url}}/api/patrons/create
- Body:
{ "firstName": "Toe", "lastName": "Arkar", "phoneNumber": "3145454566", "email": "[email protected]" }
- Description: Creates a new patron with the given details.
- Method: DELETE
- URL:
{{base_url}}/api/patrons/delete/{patronId}
- Description: Deletes a patron by its ID.
- Method: GET
- URL:
{{base_url}}/api/patrons/retrieveAll
- Description: Retrieves a list of all patrons.
- Method: GET
- URL:
{{base_url}}/api/patrons/retrieve/{patronId}
- Description: Retrieves details of a patron by their ID.
- Method: PUT
- URL:
{{base_url}}/api/patrons/update/{patronId}
- Body:
{ "patronId": "301b9d17-bede-40cc-abcc-997ff50e3196", "firstName": "Toe", "lastName": "Arkar", "phoneNumber": "3145454578", "email": "[email protected]" }
- Description: Updates the details of a patron by their ID.
- Method: POST
- URL:
{{base_url}}/api/borrow/{bookId}/patron/{patronId}
- Description: Records that a patron has borrowed a book.
- Method: PUT
- URL:
{{base_url}}/api/return/{bookId}/patron/{patronId}
- Description: Records the return of a borrowed book.