Closed bu-jgerhold closed 2 years ago
No, for the base basket only adding new products via POST is possible. The DELETE and PATCH methods are available for each product item: https://github.com/aimeos/ai-client-jsonapi/blob/ea88db283f2dda2c994829101a5dc996278ec6be/client/jsonapi/templates/basket/standard.php#L123 This is also true for bulk operations because they need to be sent to the basket/product endpoint, not the basket endpoint itself.
No, for the base basket only adding new products via POST is possible. The DELETE and PATCH methods are available for each product item:
This is also true for bulk operations because they need to be sent to the basket/product endpoint, not the basket endpoint itself.
This link of the product item includes the items relatedid as get parameter and the body will be ignored.
The link I referenced above is the same link without the relatedid get parameter.
OK, maybe a DELETE is acceptable. Can you create a PR with a patch?
Hi!
I think more methods should be added here:
https://github.com/aimeos/ai-client-jsonapi/blob/ea88db283f2dda2c994829101a5dc996278ec6be/client/jsonapi/templates/basket/standard.php#L315
client/jsonapi/src/Client/JsonApi/Basket/Product/Standard.php allows multiple items to be deleted by a body with an array of Objects with an id attribute.
https://github.com/aimeos/ai-client-jsonapi/blob/master/client/jsonapi/src/Client/JsonApi/Basket/Product/Standard.php#L79
This probably is true. for other methods and other basket types.