Title here
Summary here
You are reading Pionia Shop docs and hit an unfamiliar term — switch, envelope, Porm. Use this page while following the tutorial.
| Term | Meaning |
|---|---|
| Action | Method on a service ("action": "list" → listAction) |
| AppRealm | Booted application container (app() / realm()) |
| Envelope | JSON shape: returnCode, returnMessage, returnData |
| GenericService | Base class with CRUD actions for one table |
| Moonlight | { service, action } dispatch on /api/v1/ |
| Porm | Fluent SQL (table(), filters, joins) |
| returnCode | Business result (0 = success); not the same as HTTP status |
| Service | PHP class with business logic |
| Switch | Versioned API entry (MainSwitch → /api/v1/) |
| Name | Meaning |
|---|---|
| Pionia Shop | Canonical example — online store + wallet |
| ada@pionia.shop | Sample customer |
| product | Catalog service |
| customer | Auth / profile service |
| order | Checkout service |
| wallet | Store credit service |
Example request:
POST http://127.0.0.1:8000/api/v1/
{ "service": "product", "action": "list" }returnCode with HTTP statusservice and actionFull request flow.
Use the vocabulary hands-on.