Skip to content

Commit 1fd410b

Browse files
committed
CPM-724: Add Product Uuids endpoints
1 parent 85cd3d6 commit 1fd410b

File tree

11 files changed

+1000
-4
lines changed

11 files changed

+1000
-4
lines changed

content/swagger/akeneo-web-api.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

content/swagger/definitions.yaml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,22 @@ ProductList:
88
- $ref: '#/definitions/ItemList'
99
- $ref: '#/definitions/Product'
1010

11+
ProductUuid:
12+
$ref: ./resources/products_uuid/definitions/product_uuid.yaml
13+
ProductUuidExamples:
14+
$ref: ./resources/products_uuid/definitions/examples/products_uuid.yaml
15+
ProductUuidList:
16+
type: object
17+
allOf:
18+
- $ref: '#/definitions/ItemList'
19+
- $ref: '#/definitions/ProductUuid'
20+
1121
ProductModel:
1222
$ref: ./resources/product_models/definitions/product_model.yaml
1323
ProductModelList:
1424
type: object
1525
allOf:
16-
- $ref: '#/definitions/ItemList'
26+
- $ref: '#/definitions/ItemList'
1727
- $ref: '#/definitions/ProductModel'
1828

1929
PublishedProduct:

content/swagger/parameters.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,12 @@ code:
3636
description: Code of the resource
3737
required: true
3838
type: string
39+
uuid:
40+
name: uuid
41+
in: path
42+
description: Uuid of the resource
43+
required: true
44+
type: string
3945
reference_entity_code:
4046
name: reference_entity_code
4147
in: path

content/swagger/paths.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,15 @@
77
/api/rest/v1/products/{code}/draft:
88
$ref: ./resources/products/routes/products_code_draft.yaml
99

10+
/api/rest/v1/products-uuid:
11+
$ref: ./resources/products_uuid/routes/products_uuid.yaml
12+
/api/rest/v1/products-uuid/{uuid}:
13+
$ref: ./resources/products_uuid/routes/products_uuid_uuid.yaml
14+
/api/rest/v1/products-uuid/{code}/proposal:
15+
$ref: ./resources/products_uuid/routes/products_uuid_uuid_proposal.yaml
16+
/api/rest/v1/products-uuid/{code}/draft:
17+
$ref: ./resources/products_uuid/routes/products_uuid_uuid_draft.yaml
18+
1019
/api/rest/v1/product-models:
1120
$ref: ./resources/product_models/routes/product_models.yaml
1221
/api/rest/v1/product-models/{code}:

0 commit comments

Comments
 (0)