Make list of /products/{product_id}/variants endpoints correct according to current code

This commit is contained in:
luisramos0
2019-09-11 11:15:55 +01:00
parent a2e6b84db2
commit 0dede39617

View File

@@ -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.