{"openapi":"3.2.0","info":{"title":"site","version":"0"},"paths":{"/api/members/join":{"post":{"summary":"The `member` cookie, and on to the members' page: an answer of its own (`Server.Response`, D-106).","description":"POST /api/members/join, from the joining page's form (`name=Ada`, read as `{ name : Str }`): the\n`member` cookie, and on to the members' page: an answer of its own (`Server.Response`, D-106).","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"}},"required":["name"]}},"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"name":{"type":"string"}},"required":["name"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"name":{"type":"string"}},"required":["name"]}}}},"responses":{"200":{"description":"OK","content":{"*/*":{}}},"default":{"description":"Refused: its status, and why, as text (400 for a body it can't read); a form's issues (422) as JSON; or the handler's own answer (a redirect)","content":{"text/plain":{"schema":{"type":"string"}},"application/json":{}}}}}},"/api/members/leave":{"post":{"summary":"The `member` cookie gone, and back to the joining page (D-106).","description":"POST /api/members/leave: the `member` cookie gone, and back to the joining page (D-106).","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{},"required":[]}},"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"required":[]}},"multipart/form-data":{"schema":{"type":"object","properties":{},"required":[]}}}},"responses":{"200":{"description":"OK","content":{"*/*":{}}},"default":{"description":"Refused: its status, and why, as text (400 for a body it can't read); a form's issues (422) as JSON; or the handler's own answer (a redirect)","content":{"text/plain":{"schema":{"type":"string"}},"application/json":{}}}}}},"/api/planner/move":{"post":{"summary":"A plan to another day (`{ plan, day }`), slowly on purpose (800 ms), as a far server would be, so the demo's moves are seen on their way.","description":"POST /api/planner/move: a plan to another day (`{ plan, day }`), slowly on purpose (800 ms), as a\nfar server would be, so the demo's moves are seen on their way. A day holds three plans, and the\ndentist doesn't move: those are refused (409, and why). The week is kept in the reader's cookie.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"day":{"type":"string"},"plan":{"type":"string"}},"required":["day","plan"]}},"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"day":{"type":"string"},"plan":{"type":"string"}},"required":["day","plan"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"day":{"type":"string"},"plan":{"type":"string"}},"required":["day","plan"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"string"}}}},"default":{"description":"Refused: its status, and why, as text (400 for a body it can't read); a form's issues (422) as JSON; or the handler's own answer (a redirect)","content":{"text/plain":{"schema":{"type":"string"}},"application/json":{}}}}}},"/api/calls":{"get":{"summary":"What the shout endpoints answered, asked as anything over HTTP would ask them (`Endpoint.respond!`), and as the app's own code asks them (`Endpoint.send!`, which the server answers in-process, through the endpoint's route and its middleware, D-103).","description":"GET /api/calls, for JSON: what the shout endpoints answered, asked as anything over HTTP would\nask them (`Endpoint.respond!`), and as the app's own code asks them (`Endpoint.send!`, which the\nserver answers in-process, through the endpoint's route and its middleware, D-103). The page at\n/calls reads it as it renders (`Endpoint.read!`): the page's data, at the page's path under /api.","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"asked":{"type":"array","items":{"type":"object","properties":{"answer":{"type":"string"},"body":{"type":"string"},"method":{"type":"string"},"path":{"type":"string"},"status":{"type":"integer","minimum":0,"maximum":65535}},"required":["answer","body","method","path","status"]}},"shouted":{"type":"string"}},"required":["asked","shouted"]}}}},"default":{"description":"Refused: its status, and why, as text (400 for a body it can't read); a form's issues (422) as JSON; or the handler's own answer (a redirect)","content":{"text/plain":{"schema":{"type":"string"}},"application/json":{}}}}}},"/api/facts":{"get":{"summary":"What the build measured, as `key=value` lines (`site/build.mjs`), which the site's default middleware hands on from the server's context.","description":"GET /api/facts: what the build measured, as `key=value` lines (`site/build.mjs`), which the\nsite's default middleware hands on from the server's context. The layout reads it as each page\nrenders (`Facts.facts!`), so the page carries the facts and the browser asks nothing.","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"string"}}}},"default":{"description":"Refused: its status, and why, as text (400 for a body it can't read); a form's issues (422) as JSON; or the handler's own answer (a redirect)","content":{"text/plain":{"schema":{"type":"string"}},"application/json":{}}}}}},"/api/members":{"get":{"summary":"Who you are, behind the same middleware as the page (/members): its group's.","description":"GET /api/members, as JSON: who you are, behind the same middleware as the page (/members): its\ngroup's.","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"member":{"type":"string"}},"required":["member"]}}}},"default":{"description":"Refused: its status, and why, as text (400 for a body it can't read); a form's issues (422) as JSON; or the handler's own answer (a redirect)","content":{"text/plain":{"schema":{"type":"string"}},"application/json":{}}}}}},"/api/planner":{"get":{"summary":"The reader's week, which the planner demo (`Demos/Planner.rocx`) reads as the page renders, and again once a move is in: kept in a cookie of theirs (`planner`), so each reader moves their own plans.","description":"GET /api/planner: the reader's week, which the planner demo (`Demos/Planner.rocx`) reads as the\npage renders, and again once a move is in: kept in a cookie of theirs (`planner`), so each\nreader moves their own plans.","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"day":{"type":"string"},"id":{"type":"string"},"title":{"type":"string"}},"required":["day","id","title"]}}}}},"default":{"description":"Refused: its status, and why, as text (400 for a body it can't read); a form's issues (422) as JSON; or the handler's own answer (a redirect)","content":{"text/plain":{"schema":{"type":"string"}},"application/json":{}}}}}},"/api/reader":{"get":{"summary":"Who is reading, as a session would say on the server (here, always Ada).","description":"GET /api/reader: who is reading, as a session would say on the server (here, always Ada). The\nbag demo reads it as the page renders, and the page carries the answer.","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"string"}}}},"default":{"description":"Refused: its status, and why, as text (400 for a body it can't read); a form's issues (422) as JSON; or the handler's own answer (a redirect)","content":{"text/plain":{"schema":{"type":"string"}},"application/json":{}}}}}},"/api/shelf":{"get":{"summary":"What is on the shelf, from wherever a shop keeps it (here, a list).","description":"GET /api/shelf: what is on the shelf, from wherever a shop keeps it (here, a list). The shelf\ndemo reads it as the page renders.","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"price":{"type":"integer","minimum":0}},"required":["name","price"]}}}}},"default":{"description":"Refused: its status, and why, as text (400 for a body it can't read); a form's issues (422) as JSON; or the handler's own answer (a redirect)","content":{"text/plain":{"schema":{"type":"string"}},"application/json":{}}}}}},"/api/shout":{"post":{"summary":"What it is sent, shouted.","description":"POST /api/shout: what it is sent, shouted. Nothing to shout is refused, with a 400.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"string"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"string"}}}},"default":{"description":"Refused: its status, and why, as text (400 for a body it can't read); a form's issues (422) as JSON; or the handler's own answer (a redirect)","content":{"text/plain":{"schema":{"type":"string"}},"application/json":{}}}}}},"/api/count/{to}":{"parameters":[{"name":"to","in":"path","required":true,"schema":{"type":"integer","minimum":0}}],"get":{"summary":"1 to 5, each with its square, 300 ms apart.","description":"GET /api/count/5, asked for its events (`accept: text/event-stream`): 1 to 5, each with its\nsquare, 300 ms apart. A loop: send, sleep, round again; if the page goes, `send!` says so, and\n`?` ends the loop. Its param is a number (`/api/count/five` is no route: 404).","responses":{"200":{"description":"OK","content":{"text/event-stream":{"itemSchema":{"oneOf":[{"type":"object","required":["data"],"properties":{"data":{"type":"string","contentMediaType":"application/json","contentSchema":{"type":"object","properties":{"count":{"type":"integer","minimum":0},"of":{"type":"integer","minimum":0},"square":{"type":"integer","minimum":0}},"required":["count","of","square"]}}}},{"type":"object","required":["event"],"properties":{"event":{"const":"end"}}}]}}}},"default":{"description":"Refused: its status, and why, as text (400 for a body it can't read); a form's issues (422) as JSON; or the handler's own answer (a redirect)","content":{"text/plain":{"schema":{"type":"string"}},"application/json":{}}}}}},"/api/echo/{message}":{"parameters":[{"name":"message","in":"path","required":true,"schema":{"type":"string"}}],"get":{"summary":"The message, said back.","description":"GET /api/echo/:message: the message, said back. The echo demo reads it for each message as the\npage renders (`Endpoint.read!`), so the page carries every answer and picking asks nothing.","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"string"}}}},"default":{"description":"Refused: its status, and why, as text (400 for a body it can't read); a form's issues (422) as JSON; or the handler's own answer (a redirect)","content":{"text/plain":{"schema":{"type":"string"}},"application/json":{}}}}}},"/api/shout/{word}":{"parameters":[{"name":"word","in":"path","required":true,"schema":{"type":"string"}}],"get":{"summary":"The word, shouted, and how many bytes it has.","description":"GET /api/shout/:word: the word, shouted, and how many bytes it has.","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"bytes":{"type":"integer","minimum":0},"shouted":{"type":"string"},"word":{"type":"string"}},"required":["bytes","shouted","word"]}}}},"default":{"description":"Refused: its status, and why, as text (400 for a body it can't read); a form's issues (422) as JSON; or the handler's own answer (a redirect)","content":{"text/plain":{"schema":{"type":"string"}},"application/json":{}}}}}}}}