Spring project for a pharmacy store, returns data about Medicines, Employees, Patients, Prescriptions and Ingredients in JSON format through endpoints. The project allows CRUD operations for all model classes. Tests were performed using JUnit.
There postman requests can be imported into postman from the json file present in the postman directory, this should be the result:
Typical GET request and response to find object by Id:
The scenario of the object not existing is also handled, returning a 404 response code: This is handled for all requests where an id is passed in the URL
Objects can also be saved using a POST request:
There is field validation for these requests:
Objects can be deleted with a GET request:
Certain objects are updated using a POST request where the input is passed as raw text: