From 6706ad54da32be690de83aac53c9b9ed27b3102d Mon Sep 17 00:00:00 2001
From: Boris Hermans <18699562+boherm@users.noreply.github.com>
Date: Thu, 18 Dec 2025 17:23:38 +0100
Subject: [PATCH] Specify duplicate on admin api
---
0023-cqrs-api-guidelines.md | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/0023-cqrs-api-guidelines.md b/0023-cqrs-api-guidelines.md
index b6fd2ea..edee5ab 100644
--- a/0023-cqrs-api-guidelines.md
+++ b/0023-cqrs-api-guidelines.md
@@ -51,12 +51,12 @@ To allow knowing the association between languages and language IDs a `/language
### HTTP methods
-
Read operations use **GET** method and should use `PrestaShopBundle\ApiPlatform\Metadata\CQRSGet`
Creation operations use **POST** method (without ID specified) and should use `PrestaShopBundle\ApiPlatform\Metadata\CQRSCreate`
Full update operations use **PUT** method (ex: PUT `/products/{productId}`) and should use `PrestaShopBundle\ApiPlatform\Metadata\CQRSUpdate`
Partial update operations use **PATCH** method (ex: PATCH `/products/{productId}`) and should use `PrestaShopBundle\ApiPlatform\Metadata\CQRSPartialUpdate`
-Delete operations use **DELETE** method (ex: DELETE `/products/{productId}`) and should use `PrestaShopBundle\ApiPlatform\Metadata\CQRSDelete`
+Delete operations use **DELETE** method (ex: DELETE `/products/{productId}`) and should use `PrestaShopBundle\ApiPlatform\Metadata\CQRSDelete`
+Duplicate operations use **POST** method with ID specified (ex: POST `/products/{productId}/duplicate`) and should use `PrestaShopBundle\ApiPlatform\Metadata\CQRSCreate`
### Custom operations
@@ -64,7 +64,7 @@ To simplify the integration of our custom CQRS based implementation some custom
- `PrestaShopBundle\ApiPlatform\Metadata\CQRSGet` for read operations on a single resource
- `PrestaShopBundle\ApiPlatform\Metadata\CQRSGetCollection` for read operations on a list of resources (not paginated)
-- `PrestaShopBundle\ApiPlatform\Metadata\CQRSCreate` for creation operations
+- `PrestaShopBundle\ApiPlatform\Metadata\CQRSCreate` for creation and duplication operations
- `PrestaShopBundle\ApiPlatform\Metadata\CQRSUpdate` for full update operations
- `PrestaShopBundle\ApiPlatform\Metadata\CQRSPartialUpdate` for partial update operations
- `PrestaShopBundle\ApiPlatform\Metadata\CQRSDelete` for delete operations