-
Notifications
You must be signed in to change notification settings - Fork 20
Add endpoints for category bulk actions #76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add endpoints for category bulk actions #76
Conversation
341faeb to
781c506
Compare
781c506 to
0efa790
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a little typo comment if you can fix it that would be great ;) Thx.
0efa790 to
fe82e27
Compare
Done, thank you so much!!! |
fe82e27 to
32e55c9
Compare
|
@tleon I resolved a conflict with the tests/Integration/ApiPlatform/CategoryEndpointTest.php class, can you re-approve? Thanks 🙏 |
|
Hello @Codencode, Thanks for your PR, i tested it and it's good for me :)
Thanks ^^ |











How to test Category API
category_read&category_writeQuery 1
POST/category{ "names": { "en-US": "Category EN", "fr-FR": "Catégorie FR" }, "linkRewrites": { "en-US": "category-en", "fr-FR": "categorie-fr" }, "isActive": true, "parentCategoryId": 2, "shopIds": [1] }{theCreatedID})Query 2
GET/category/{theCreatedID}Query 3
GET/categories?orderBy=categoryId&sortOrder=desc{theCreatedID}Query 4
DELETE/category/{theCreatedID}{"mode": "associate_and_disable"}Query 5
GET/category/{theCreatedID}Query 6 (bulk toggle status)
PUT/categories/toggle-status{"categoryIds": [{theCreatedID2}, {theCreatedID3}], "enabled": false}Response :
Check :
GET /category/{theCreatedID2}→ enabled = falseGET /category/{theCreatedID3}→ enabled = falseQuery 7 (bulk delete)
PUT/categories/delete{"categoryIds": [{theCreatedID2}, {theCreatedID3}], "enabled": false, "mode": "associate_and_disable"}Response :
Check :
GET /category/{theCreatedID2}→ 404GET /category/{theCreatedID3}→ 404