Skip to content

docs: describe the real API instead of a fictional one - #807

Merged
CybotTM merged 1 commit into
mainfrom
docs/805-real-api-endpoints
Aug 26, 2026
Merged

docs: describe the real API instead of a fictional one#807
CybotTM merged 1 commit into
mainfrom
docs/805-real-api-endpoints

Conversation

@CybotTM

@CybotTM CybotTM commented Aug 26, 2026

Copy link
Copy Markdown
Member

Fixes #805. docs/API.md documented endpoints that have never existed (GET /api/job/{name}, PUT /api/job/{name}, PATCH …/toggle, execution and scheduler-control routes, WebSocket events), and openapi.yaml carried the same fiction plus /metrics, which the web server does not mount. Both files are rewritten from the route table in web/server.go and the verified handler shapes: the three job listings with the real apiJob schema, /api/jobs/{name}/history, all POST mutations including the 403 origin gate on delete, the real login response and cookie semantics (no refresh endpoint exists), /api/config with stripped job collections, and the root-level health endpoints. Default server address corrected to :8081.

Documents current main only — nothing from the in-flight #789/#797 is included; both can now extend a spec that matches reality (as their reviews requested).

Assisted by claude-code:claude-fable-5 — Session

Fixes #805. docs/API.md documented endpoints that have never existed
(GET /api/job/{name}, PUT /api/job/{name}, PATCH .../toggle, execution
and scheduler-control routes, WebSocket events); openapi.yaml carried
the same fiction plus /metrics, which the web server does not mount.
Both files are rewritten from the route table in web/server.go and the
verified handler shapes: the three job listings and their apiJob
schema, /api/jobs/{name}/history, the POST mutations (run, enable,
disable, create, update, delete incl. the 403 origin gate), the real
login response (token + csrf_token + expires_in, cookie semantics, no
refresh endpoint), /api/config with stripped job collections, and the
root-level health endpoints. Default server address corrected to
:8081.

Assisted-by: claude-code:claude-fable-5
Agent-Session: https://claude.ai/code/session_01L7tF9XuJfAfFk4yuY5KfPK
Agent-Host: 0493f0
Signed-off-by: Sebastian Mendel <info@sebastianmendel.de>
Copilot AI lite review requested due to automatic review settings August 26, 2026 11:04
@github-actions github-actions Bot added the documentation Improvements or additions to documentation label Aug 26, 2026
@github-actions

Copy link
Copy Markdown

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

@sonarqubecloud

Copy link
Copy Markdown

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Automated approval for maintainer PR

All automated quality gates passed. See SECURITY_CONTROLS.md for compensating controls.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@codecov

codecov Bot commented Aug 26, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.13%. Comparing base (c38a03a) to head (225426d).
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #807   +/-   ##
=======================================
  Coverage   91.13%   91.13%           
=======================================
  Files          88       88           
  Lines       10681    10681           
=======================================
  Hits         9734     9734           
  Misses        946      946           
  Partials        1        1           
Flag Coverage Δ
integration 91.12% <ø> (-0.01%) ⬇️
unittests 90.42% <ø> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

@CybotTM
CybotTM added this pull request to the merge queue Aug 26, 2026
Merged via the queue into main with commit eca77ea Aug 26, 2026
37 of 38 checks passed
@CybotTM
CybotTM deleted the docs/805-real-api-endpoints branch August 26, 2026 11:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

API docs describe endpoints that do not exist; openapi.yaml stops before the job-mutation API

2 participants