Title here
Summary here
These snippets match the DeskFlow tutorial. Each section links back to the guide that explains the concept — no new ideas here, just copy-paste starting points for Northwind Studio’s task board on port 8000.
Build the services behind these curl calls.
How service and action map to HTTP.
All topic sections and layer index.
| Example | DeskFlow action | Learn more |
|---|---|---|
| Ping | Health check | Introduction |
| List tasks | task.list | API tutorial |
| Create task | task.create | Validation |
| Member login | member.login | Security |
| Filter open tasks | task.list + filter | Filtering |
| settings.ini | Switch registration | Application structure |
curl -s http://127.0.0.1:8000/api/v1/ping{
"returnCode": 0,
"returnMessage": "pong",
"returnData": { "version": "v1" }
}curl -s -X POST http://127.0.0.1:8000/api/v1/ \
-H "Content-Type: application/json" \
-d '{"service":"task","action":"list"}'{
"returnCode": 0,
"returnMessage": "OK",
"returnData": {
"tasks": [
{
"id": 1,
"title": "Review homepage mockups",
"status": "open",
"assignee": "alex@northwind.studio"
}
]
}
}Learn how this is built: API tutorial.
curl -s -X POST http://127.0.0.1:8000/api/v1/ \
-H "Content-Type: application/json" \
-d '{"service":"task","action":"create","title":"Ship DeskFlow docs","project_id":1}'Missing title returns HTTP 422 — see Validation.
curl -s -X POST http://127.0.0.1:8000/api/v1/ \
-H "Content-Type: application/json" \
-d '{"service":"member","action":"login","email":"alex@northwind.studio","password":"secret"}'Use the returned JWT in Authorization: Bearer … for protected actions — Security.
curl -s -X POST http://127.0.0.1:8000/api/v1/ \
-H "Content-Type: application/json" \
-d '{"service":"task","action":"list","status":"open"}'[app_switches]
v1=Application\Switches\MainSwitch
[app]
DEBUG=trueFull reference: Application structure.
php pionia serve — start the dev server on port 8000 first.Content-Type: application/json.task.list fails until TaskService is on MainSwitch."service" and "action" in every payload.Implement task.list in TaskService.
Register DeskFlow services on MainSwitch.
Packages, CLI cheatsheet, and community links.