Skip to content

maximilianried/parcel-delivery-system

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Parcel delivery system

Description

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.

Project Goal

This Project was created for learning more about writing REST backends with Groovy combined with Spock as the testing framework.

Docs

  • 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}

Releases

No releases published

Packages

No packages published

Languages