mxHeadless
REST API gateway for headless frontends on MODX 3. Resources, objects, OpenAPI, API keys, and OAuth

Generic CRUD for objects from ObjectRegistry. The URL name is a logical name (products, orders), not a PHP class.
| Method | Path | Scope |
|---|---|---|
| GET | /objects/{name} | {name}.read |
| GET | /objects/{name}/{id} | {name}.read |
| POST | /objects/{name} | {name}.create |
| PUT / PATCH | /objects/{name}/{id} | {name}.update |
| DELETE | /objects/{name}/{id} | {name}.delete |
The pattern is fixed in RoutesRegistrar: {name}.{action}. Not objects.{name}.read.
curl -s 'https://example.com/api/v1/objects/products?limit=10' \
-H 'Authorization: Bearer mxh_...'An object appears in the API only after registration via core bootstrap or the OnMxHeadlessRegister event. See Extensions.
Unregistered name → 404.
Typical names: products, categories, orders, … Orders are usually protected. Details: MiniShop3.
Same querying and mutations rules as resources, within definition fields/filters.