From 0dede396176e47760192c02dc2afe25905663280 Mon Sep 17 00:00:00 2001 From: luisramos0 Date: Wed, 11 Sep 2019 11:15:55 +0100 Subject: [PATCH] Make list of /products/{product_id}/variants endpoints correct according to current code --- swagger.yaml | 44 +++++++++++++++++++++++--------------------- 1 file changed, 23 insertions(+), 21 deletions(-) diff --git a/swagger.yaml b/swagger.yaml index e1ba780792..a658344f75 100644 --- a/swagger.yaml +++ b/swagger.yaml @@ -241,27 +241,7 @@ paths: application/json: schema: $ref: '#/components/schemas/Variant' - - /products/{product_id}/variants/new: - get: - description: Gets an object consisting of an array of all Variant attributes and an array of required attributes to create a new Variant object. - tags: - - product variants - parameters: - - in: path - name: product_id - schema: - type: integer - required: true - description: Numeric ID of the Product. - responses: - '200': - description: successful operation - content: - application/json: - schema: - $ref: '#/components/schemas/New' - + /products/{product_id}/variants/{variant_id}: get: description: Gets a Variant by ID. @@ -341,6 +321,28 @@ paths: '204': description: successful deletion + /products/{product_id}/variants/{variant_id}/soft_delete: + delete: + description: Soft-deletes the Variant with the given ID. + tags: + - product variants + parameters: + - in: path + name: product_id + schema: + type: integer + required: true + description: Numeric ID of the Product. + - in: path + name: variant_id + schema: + type: integer + required: true + description: Numeric ID of the Variant. + responses: + '204': + description: successful deletion + /taxonomies: get: description: Gets all Taxonomies.