Skip to content

Package Service

Sjors Scholten edited this page Jun 3, 2021 · 3 revisions

Pakket Service Model

Package service contains out of 2 domain objects: Package and Ticket.

  1. Package is an object with data of a real package.
  2. Ticket is a snapshot of the status of a package.

Interfaces

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;

Ticket

Naam Methode Endpoint
AddTicket POST /{packageId}
  • AddTicket: Creates a new ticket for the package with the corresponding Id.

Clone this wiki locally