From 989b47a2d19fa6061a4541dc20633580fc584eb9 Mon Sep 17 00:00:00 2001 From: "b.boterman@htm.nl" Date: Thu, 7 Nov 2024 10:36:13 +0100 Subject: [PATCH] Add address as single entity to order customer. --- src/openapi/orders/orders-crud.yaml | 24 +++++++++++------------- 1 file changed, 11 insertions(+), 13 deletions(-) diff --git a/src/openapi/orders/orders-crud.yaml b/src/openapi/orders/orders-crud.yaml index 54e64a8..8ae1a81 100644 --- a/src/openapi/orders/orders-crud.yaml +++ b/src/openapi/orders/orders-crud.yaml @@ -2004,8 +2004,8 @@ paths: required: true description: The id of the customer on the order. post: - summary: P3. Add one or more addresses to a customer of the order. - description: Add one or more addresses to a customer of the order. + summary: P3. Add an addresses to a customer of the order. + description: Add an addresses to a customer of the order. tags: - Customer requestBody: @@ -2014,17 +2014,15 @@ paths: schema: $ref: "#/components/schemas/unavailable" example: - [ - { - "addressTypeId": 1, - "street": "Kon. Julianaplein", - "houseNumber": 10, - "houseNumberSuffix": "a", - "postalCode": "2595 AA", - "city": "Den Haag", - "country": "NL", - }, - ] + { + "addressTypeId": 1, + "street": "Kon. Julianaplein", + "houseNumber": 10, + "houseNumberSuffix": "a", + "postalCode": "2595 AA", + "city": "Den Haag", + "country": "NL", + } responses: "201": description: Created