
REST API
MiniShop3 Web API (api.php) handles the storefront and headless clients: cart, checkout, customer account, public catalog. Manager API (connector.php) runs under a MODX session for the Vue admin and is not covered here.
text
/assets/components/minishop3/api.php?route=/api/v1/...Route source: core/components/minishop3/config/routes/web.php. Custom routes: core/config/ms3_routes_web.custom.php, add-on fragments: core/config/ms3.routes.d/web/*.php.
Documentation
| Section | Contents |
|---|---|
| Overview | Envelope, middleware, base URL |
| Authorization | Token, cookie, Bearer, login, me, refresh |
| Endpoint map | Full table = web.php |
| Catalog | product, category, filters, ACL |
| Cart | Mutations and cart/get format |
| Checkout | delivery/payment list, order, cost, submit |
| Customer | Profile, addresses, orders, email |
| Errors | code, errors, error_code, HTTP |
| CORS and rate limit | Origins, credentials, 429 |
| Examples | curl and TypeScript/$fetch |
Routing and custom routes: API Router. Same-origin storefront JS: Frontend JavaScript.
