Skip to content

Docs/openapi spec - #166

Merged
finalerock44 merged 2 commits into
mainfrom
docs/openapi-spec
Nov 11, 2026
Merged

finalerock44 merged 2 commits into
mainfrom
docs/openapi-spec

Conversation

@finalerock44

Copy link
Copy Markdown
Contributor

No description provided.

public/openapi.yaml describes every endpoint in the REST API section
(uploads, results, flows, device sessions, IP addresses), served at
https://docs.devicecloud.dev/openapi.yaml and linked from the overview.
It is written from dcd/api, and responses captured from the dev API for
all 30 operations validate against it.

CI lints it with Redocly CLI 2.71.2 after the link check. redocly.yaml
turns off three rules that don't fit: no license, no 4xx on
GET /ip-addresses, and oneOf-of-required branches. CLAUDE.md asks for the
spec to change with any page under api/. The overview's endpoint table
also gains the Device Sessions row it was missing.
Found while writing the OpenAPI spec against the code. Handing back counts
as a command, and a command's status and the human status count as reads.
A rate-limited answer carries retry_after_s in the body rather than just
saying how long to wait, and starting a session has no per-minute limit.
Some errors (a malformed start, for one) have a message but no error code,
and error responses mostly don't carry the session block.
@finalerock44 finalerock44 self-assigned this Nov 11, 2026
@claude

claude Bot commented Nov 11, 2026

Copy link
Copy Markdown

Code review

No issues found. Checked for bugs and CLAUDE.md compliance.

🤖 Generated with Claude Code

@finalerock44
finalerock44 merged commit 6515cf7 into main Nov 11, 2026
2 checks passed
@finalerock44
finalerock44 deleted the docs/openapi-spec branch November 11, 2026 12:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant