Spring parcel system backend using JPA, Spock, Spring Web and Groovy.
To provide a fully functional UI the project can be extended with Webpages using thymeleaf for example. However, because this was just a quick experiment for learning purposes, I used it with Postman.
This Project was created for learning more about writing REST backends with Groovy combined with Spock as the testing framework.
-
Save parcel POST
/parcel/save
{ "senderName": "John Doe", "senderAddress": "Anystreet 1", "receiverName": "Max Mustermann", "receiverAddress": "Musterstraße 1" }
-
Get all parcels GET
/parcel/getAll
-
Get parcel by id GET
/parcel/get/{id}
-
Delete parcel by id DELETE
/parcel/delete/{id}
-
Delete all parcels DELETE
/parcel/deleteAll
-
Update parcel status PUT
/update/status/{id}/{status}