-
Notifications
You must be signed in to change notification settings - Fork 1
Package Service
Sjors Scholten edited this page Jun 3, 2021
·
3 revisions

Package service contains out of 2 domain objects: Package and Ticket.
- Package is an object with data of a real package.
- Ticket is a snapshot of the status of a package.
| Naam | Methode | Endpoint |
|---|---|---|
| AddPackage | POST | / |
| GetPackageById | GET | /{id} |
| GetAllPackages | GET | / |
| UpdatePackage | PUT | /{id} |
- AddPackage: Creates a new Package using data in the attached PackageRequest, returns the Package data in a PackageRepsonse.
- GetAllPackages: Returns a collection of PackageResponses.
- GetPackageById: Returns a PackageResponse with the corresponding Id.
- UpdatePackage: Update the Package with the corresponding id with the data in the attached PackageRequest, returns a PackageResponse with the data of the updated Package;
| Naam | Methode | Endpoint |
|---|---|---|
| AddTicket | POST | /{packageId} |
- AddTicket: Creates a new ticket for the package with the corresponding Id.
