Skip to content

Documenting Endpoints#3263

Open
saengel wants to merge 4 commits intomasterfrom
feature/sc-38183/have-claude-document-outstanding-endpoints
Open

Documenting Endpoints#3263
saengel wants to merge 4 commits intomasterfrom
feature/sc-38183/have-claude-document-outstanding-endpoints

Conversation

@saengel
Copy link
Copy Markdown
Contributor

@saengel saengel commented May 5, 2026

Description

This PR adds AI-assisted documentation to the OpenAPI.json file for 29 additional endpoints which may be helpful for public-facing users, organized by tags.

Note:
Validation: npx rdme openapi:validate docs/openAPI.json passes (the same command CI runs).

Code Changes

  1. New endpoints in OpenAPI.json
  2. Decisions and classifications around which endpoints to document, and which are less useful for external developers in docs/decisions.

Notes

  • Was tested in a ReadMe test env and looks good
  • I highly recommend a slightly different code review in this instance, due to the nature of this PR. See the shortcut card for a specific path forward.

Adds 30 new path entries and 24 new component schemas to docs/openAPI.json,
covering Sheets, Collections, Text, Index (incl. Authors), Related, Calendars,
and a public Profile endpoint. Two new tags ("Sheets", "Collections") create
dedicated ReadMe sidebar folders; Authors are folded into Index and Profile
into Misc per the audit decision.

Every example was captured from a live www.sefaria.org response — no invented
values. Schemas reuse existing components (ref, SheetsJSON, BillingualJSON)
where shapes match.

Adds docs/decisions/documented_endpoints.md as a stable audit artifact: the
in-scope list, the skip rubric for future engineers, and the per-endpoint
reasoning for everything that was excluded (auth-required, staff-only,
internal infrastructure, broken under load, etc).

Validation: `npx rdme openapi:validate docs/openAPI.json` passes (the same
command CI runs). Two pre-existing spectral lint errors in textAPIReponse
and RelatedJSON.sheets.example are unchanged by this commit.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@saengel saengel requested review from Copilot and yitzhakc May 5, 2026 13:13
@gitvelocity-reviewer
Copy link
Copy Markdown

📊 Code Quality Score: 42/100

42 × 1.0 (Extra Large ESF) = 42

Category Score Factors
🔭 Scope 14/20 Single file with 29+ new endpoint definitions across new tag categories (Sheets, Collections); affects public developer documentation; new component schemas introduced
🏗️ Architecture 8/20 New tag categories establish organizational structure; component schema additions; purely additive, no breaking changes; follows existing OpenAPI patterns
⚙️ Implementation 6/20 Schema design requires domain knowledge; parameter type decisions; example data curation; no algorithmic complexity; documentation-only change
⚠️ Risk 5/20 Public-facing documentation affects external developer experience; incorrect docs could mislead consumers; easily reversible; no runtime risk
✅ Quality 8/15 Comprehensive audit document with clear skip rubric (+3); practical developer guidance in descriptions (+2); duplicate example content maintenance concern (-2); missing 404 responses (-1); count discrepancy in audit (-1)
🔒 Perf / Security 1/5 llm_scoring internal field exposed in public examples is minor concern; basic documentation hygiene present

Scored by GitVelocity · How are scores calculated?

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds/extends public API documentation by expanding the documented endpoint set and recording the decision-making audit for what is (and isn’t) exposed to external developers.

Changes:

  • Adds an endpoint inventory/audit document with publication decisions and skip rubric.
  • Summarizes newly documented vs. skipped endpoints and proposed ReadMe tag grouping.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread docs/decisions/documented_endpoints.md
Comment thread docs/decisions/documented_endpoints.md Outdated
Comment thread docs/decisions/documented_endpoints.md Outdated
Comment thread docs/decisions/documented_endpoints.md Outdated
Comment thread docs/decisions/documented_endpoints.md Outdated
Comment thread docs/decisions/documented_endpoints.md Outdated
saengel and others added 3 commits May 5, 2026 19:54
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
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.

2 participants