API Change protocol - 20231110 - Products input parameter

What we want to change:

Add a new attribute products into the request for POST /v2/reservation

Why we want to change:

To allow partners to create a reservation with just knowledge of products (that shall be included in a package in a future).

When we want to change:

Stage environment:

Plan:
During sprint No.2324, i.e. no later than No.2325

Actual:
21.11.2023

Production environment:

Plan:
During sprint No.2324, i.e. no later than No.2325

Actual:
22.11.2023

Affected enpoints

POST /v2/reservation

Example of change:

POST /parcel-lockers/v2/reservation { "data": { "reservation": { "id": "RES123", "attributes": { "products": [ { "depth": 3.5, "height": 2.8, "width": 4.2, "quantity": 1, "code": "PROD123", "weight": 1.3 }, { "depth": 3.5, "height": 2.8, "width": 4.2, "quantity": 1, "code": "PROD1234", //NOTE: Note the missing weight attribute, since it is optional }, { "depth": 3.5, "height": 2.8, "width": 4.2, "quantity": 1, "code": "PROD12345", //NOTE: Note the missing weight attribute, since it is optional } ] } } } }