Resolve "Refactorize and harmonize parcel endpoints"
Closes #391 (closed) This MR tries to group the GET endpoints concerned the parcel in a single endpoint. Therefore some emdpoint are flagged as deprecated:
/tracking/{sessionId}/investigation/id/{investigationId}/shipment/id/{shipmentId}/parcel
/tracking/{sessionId}/investigation/id/{investigationId}/parcel/id/{parcelId}
/tracking/{sessionId}/parcel/status/{status}
becomes:
/tracking/{sessionId}/parcel?investigationId=&shipmentId
/tracking/{sessionId}/parcel?investigationId=&parcelId
/tracking/{sessionId}/parcel?status
Note that there is a change in the API for /tracking/{sessionId}/investigation/id/{investigationId}/parcel/id/{parcelId}
as it returns now an array instead of an object
To be deployed with: E-DataPortal!692 (merged)
This merge changes how data is stored in the DB because parcel.status
was a virtual field first and it is not persisted in the DB in order to make easier to filter by
Edited by Alejandro De Maria Antolinos