ps-api-endpoint
Installation
SKILL.md
PrestaShop Admin API Endpoint Generator
This skill walks through creating a new endpoint in ps_apiresources, from discovery to generated code.
Step 1: Gather requirements
Ask the user (all in one message if not already specified):
- Entity name — e.g.
TaxRule,Warehouse(PascalCase, singular) - Operations needed — GET single, POST (create), PATCH (partial update), PUT (full update), DELETE, GET list (paginated). Also ask about bulk operations (e.g. bulk delete) or custom sub-resource actions (e.g. status toggle).
- PrestaShop core path — absolute path to the PS root, e.g.
/home/user/prestashop-90x. Needed to look up CQRS classes. Offer to skip this step if the user already knows the class names.
Step 2: Discover CQRS classes
Search the PS core for the entity's domain classes. The standard layout is: