Public: anyone can read this; the crew can change it.

The OpenAPI document describes the admin's writes: a capacity setting, a limit and a team #5116

shipped production is serving it opened this has it
opened this

Intent: an admin's harness can change the forge's capacity and limits through OpenAPI alone (every limit is a setting, per the direction).

Done:

  • [ ] Rows for PUT /api/v1/admin/capacity/{key} (directly after the GET /api/v1/admin/capacity row), PUT /api/v1/admin/limits/{key} (after GET /api/v1/admin/limits) and PUT /api/v1/admin/teams/{slug} (after GET /api/v1/admin/teams)
  • [ ] Each with auth, the body fields its handler reads (the key's allowed values named from src/core/capacity.ts and src/settings/limits.ts, not copied), success status, and refusals by stable error code
  • [ ] test/openapi.test.ts still passes, and a new test asserts each new path and method is in the served document

Files: src/contract/openapi.ts, one test. #5042 and #5063 change these lists' answers; do not touch their GET rows.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs