docs: fix OpenAPI server URL and stop teaching API-key project CRUD - #418
docs: fix OpenAPI server URL and stop teaching API-key project CRUD#418duyetbot wants to merge 1 commit into
Conversation
OpenAPI servers is https://agentstate.app so generated clients do not double /api/v1 paths. agents.md/llms.txt/static.ts no longer show POST/GET /api/v1/projects with an API key. Pagination docs match { data, pagination: { limit, next_cursor } }. Fixes #411 Fixes #333 Co-Authored-By: Duyet Le <me@duyet.net> Co-Authored-By: duyetbot <bot@duyet.net>
|
Warning Review limit reached
Next review available in: 116 minutes You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (5)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Reviewer's GuideThis PR updates API documentation and the embedded OpenAPI spec to match the live behavior: fixing the server URL, standardizing pagination response shape, and clearly marking project CRUD as dashboard/Clerk-only instead of API-key accessible. Sequence diagram for updated pagination response shapesequenceDiagram
actor Developer
participant API
Developer->>API: GET /api/v1/conversations?limit=50
API-->>Developer: { data, pagination: { limit, next_cursor } }
alt [pagination.next_cursor not null]
Developer->>API: GET /api/v1/conversations?limit=50&cursor=pagination.next_cursor
API-->>Developer: { data, pagination: { limit, next_cursor } }
else [pagination.next_cursor is null]
Developer-->>Developer: Stop pagination
end
File-Level Changes
Assessment against linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Summary
Fixes docs/spec drift from #411 (no new features).
serversis nowhttps://agentstate.appso paths/api/v1/*are not doubled to/api/api/v1/*.agents.md/llms.txt/ regeneratedstatic.tsno longer teach API-keyPOST/GET /api/v1/projects. Project CRUD is Clerk/dashboard only; those routes 401 with a Bearer API key./v1/projectsis not mounted.{ data, pagination: { limit, next_cursor } }in agents.md and the worst-wrong sections ofdocs/api-reference.md.PUTin these files (no remainingPATCH /conversationsclaim). docs: README and api-reference say conversation update uses PATCH; the route is actually PUT #301 / [docs] Conversation update documented as PATCH but route is PUT #332 were already corrected in-tree.Also closes #333 on the same project-docs: paths are
/api/v1/projects/*only.Test plan
servers[0].urlishttps://agentstate.appand a generated client would callhttps://agentstate.app/api/v1/conversations/agents.mdand/llms.txtdo not showAuthorization: Bearer as_live_...againstPOST /api/v1/projects{ data, pagination: { limit, next_cursor } }(no top-levelhas_more, nopagination.totalon those lists)docs/api-reference.mdproject CRUD is marked Clerk/dashboard and says/v1/projectsis not mountedCloses #411
Closes #333
Summary by Sourcery
Align API documentation and OpenAPI spec with current behavior for project management, authentication, and pagination.
Bug Fixes:
Enhancements:
/api/v1/projects/*as the sole path (no/v1/projectsalias) and that org filtering is derived from the Clerk session rather than request parameters.Documentation: