Add GET (show) endpoint for a single record in Book table
Acceptance Criteria:
[x] In BookController.java there is code for an
endpoint GET /api/Book?id=123 endpoint
that returns the JSON of the database record with id 123 if it
exists, or a 400 and the error message id 123 not found if it
does not.
[x] The Swagger-UI endpoints for this endpoint is well documented
so that any member of the team can understand how to use it.
[x] The endpoint works as expected on localhost.
[x] The endpoint works as expected when deployed to Dokku.
[x] There is full test coverage (Jacoco) for the new code in
BookController.java
[x] There is full mutation test coverage (Pitest) for new code in
BookController.java
Add
GET
(show) endpoint for a single record in Book tableAcceptance Criteria:
BookController.java
there is code for an endpointGET /api/Book?id=123
endpoint that returns the JSON of the database record with id 123 if it exists, or a 400 and the error messageid 123 not found
if it does not.BookController.java
BookController.java