JSON over HTTP, served by API.SYS at 0x9000. Base
http://HOST:8080. Replies carry X-API-Version: 13
and an exact Content-Length; every connection closes.
/api | catalogue | /api/system | os, cpu, tasks, uptime |
/api/tasks | task count | /api/ps | slot/name/app/term/user/seg |
/api/memory | RAM | /api/who | logged-in sessions |
/api/whoami | this session | /api/users | account names |
/api/speed | baud, tick_hz | /api/time | hh/mm/ss |
/api/version | os/kernel/api | /api/status | feature bits |
/api/apps | job applications | /api/routes | BASIC routes |
POST /api/jobs {"app":"prime","params":{"limit":1000}}
-> 202 {"job_id":1,...}
GET /api/jobs list
GET /api/jobs/1 detail (status, result)
GET /api/jobs/1/result result only
DELETE /api/jobs/1 cancel
API ROUTE /api/demo APIHELLO.BAS curl -s http://HOST:8080/api/demo
Route programs get P$, Q$, M$ and B$; their PRINT output is the response. A busy BASIC session yields 503; a runaway route times out with 500.
/api/chat, /api/chat/join,
/api/chat/send, /api/chat/messages[/N] and
DELETE /api/chat/join/<token>. See
the chat page.
One request per connection and web sessions are serialized; request bodies
cap at 767 bytes; static files at 4000 bytes. Chat answers 503 when the console
ran CHAT OFF or when SLIP/TCP is on. The API is unauthenticated:
keep port 8080 on a trusted network.