Skip to content

Commit 9efc8d0

Browse files
kzuclaudecodealta-agent
committed
Fit the README's row of GET /api/runs to the table Biome formats
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: CodeAlta <noreply@codealta.io>
1 parent cb7e7ad commit 9efc8d0

1 file changed

Lines changed: 18 additions & 18 deletions

File tree

‎README.md‎

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -154,24 +154,24 @@ needs `AUTH0_DOMAIN`, `AUTH0_CLIENT_ID`, `AUTH0_CLIENT_SECRET` and `SESSION_SECR
154154
`AI_GATEWAY_API_KEY` to ask, and `JOBS_URL` and `JOBS_TOKEN` to pay (the jobs service calls the
155155
hook back on the origin of the page, which it cannot reach on localhost).
156156

157-
| Route | Who may call it |
158-
| ------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- |
159-
| `GET /auth/login?returnTo=/path`, `/auth/callback`, `/auth/logout` | anyone: the sign-in, see below |
160-
| `GET /api/me` → `{id, name, admin, mayAsk}` or `null` | anyone: the signed-in user |
161-
| `GET /api/runs?after=:id` → `{runs, next}` | anyone: the questions asked (running, completed or failed, not deleted), newest first, `mine` on the caller's; `next` is the `after` of the next page |
162-
| `POST /api/runs {question, replaces?}` → `201 {runId, class, amount, currency}` | signed in; the `Admin` or `Contrib` role until `LAUNCHED` is `"true"`; `replaces`, a run of theirs |
163-
| `POST /api/runs/:id/pay` → `202` | the owner; an `Admin` owner runs free, with no payment job |
164-
| `POST /api/runs/:id/rerun` → `202` | the owner, once, after a paid run failed |
165-
| `DELETE /api/runs/:id` | the owner, who may restore it; an admin, for good |
166-
| `POST /api/runs/:id/restore` → `204` | the owner, after deleting it |
167-
| `POST /api/runs/:id/cancel` → `204` | the owner, while the run is in progress (`409` once it ended): deletes it for good |
168-
| `GET /api/runs/:id`, `/events?after=`, `/ws?after=`, `/snapshots/:v` | anyone with the link (`mine` in the summary: the caller owns it); a deleted run, its owner only (`410` for anyone else) |
169-
| `GET /api/runs/:id/charts/:chart/:v.svg` | anyone with the link: the render of a chart (`c1`) at version `v` |
170-
| `GET /api/runs/:id/image?v=` | anyone with the link: the picture of the question (immutable with its version `v`) |
171-
| `POST /api/runs/:id/image` → `{image}` | `Admin`: draws the picture again with today's models, also for a run asked before the pictures |
172-
| `GET /api/me/runs` | signed in |
173-
| `GET`, `PUT /api/admin/models`, `/api/admin/prices` | `Admin` |
174-
| `POST /api/pay/hook` | the jobs service, with the run's own token as Bearer |
157+
| Route | Who may call it |
158+
| ------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- |
159+
| `GET /auth/login?returnTo=/path`, `/auth/callback`, `/auth/logout` | anyone: the sign-in, see below |
160+
| `GET /api/me` → `{id, name, admin, mayAsk}` or `null` | anyone: the signed-in user |
161+
| `GET /api/runs?after=:id` → `{runs, next}` | anyone: the questions started and not deleted, newest first; `mine`: the caller's; `next`: the `after` of the next page |
162+
| `POST /api/runs {question, replaces?}` → `201 {runId, class, amount, currency}` | signed in; the `Admin` or `Contrib` role until `LAUNCHED` is `"true"`; `replaces`, a run of theirs |
163+
| `POST /api/runs/:id/pay` → `202` | the owner; an `Admin` owner runs free, with no payment job |
164+
| `POST /api/runs/:id/rerun` → `202` | the owner, once, after a paid run failed |
165+
| `DELETE /api/runs/:id` | the owner, who may restore it; an admin, for good |
166+
| `POST /api/runs/:id/restore` → `204` | the owner, after deleting it |
167+
| `POST /api/runs/:id/cancel` → `204` | the owner, while the run is in progress (`409` once it ended): deletes it for good |
168+
| `GET /api/runs/:id`, `/events?after=`, `/ws?after=`, `/snapshots/:v` | anyone with the link (`mine` in the summary: the caller owns it); a deleted run, its owner only (`410` for anyone else) |
169+
| `GET /api/runs/:id/charts/:chart/:v.svg` | anyone with the link: the render of a chart (`c1`) at version `v` |
170+
| `GET /api/runs/:id/image?v=` | anyone with the link: the picture of the question (immutable with its version `v`) |
171+
| `POST /api/runs/:id/image` → `{image}` | `Admin`: draws the picture again with today's models, also for a run asked before the pictures |
172+
| `GET /api/me/runs` | signed in |
173+
| `GET`, `PUT /api/admin/models`, `/api/admin/prices` | `Admin` |
174+
| `POST /api/pay/hook` | the jobs service, with the run's own token as Bearer |
175175

176176
Nobody asks for a chart: the drafts propose them, and the summary of a run says how many charts its
177177
answer has (`charts`).

0 commit comments

Comments
 (0)