Skip to content

CP-9231 Document the 200 per-page cap on list Stories - #209

Merged
mattkepple merged 1 commit into
mainfrom
CP-9231-stories-per-page
Nov 24, 2026
Merged

mattkepple merged 1 commit into
mainfrom
CP-9231-stories-per-page

Conversation

@mattkepple

Copy link
Copy Markdown
Contributor

Companion to MakerbleDev/makerble#18040 (Jira: https://makerble.atlassian.net/browse/CP-9231).

GET /api/v2/stories now refuses a per_page above 200 with a 422. Pages of 5,000 Stories took up to 97s on production.

  • openapi.yaml: listStories explains the cap in its description and lists the UnprocessableEntity 422 response. The shared PerPage parameter already said max 200.
  • server.js: the List all Stories card says "default 10, max 200" and shows the 422.

npm run check passes. The diff touches only openapi.yaml and the one endpoint card.

Release timing: the API docs and the MCP are pre-launch, so per CLAUDE.md this PR may be merged as soon as it has been reviewed, without waiting for the Rails hotfix to reach production.


Generated by Claude Code

GET /api/v2/stories now refuses per_page above 200 with a 422, after
5,000-Story pages took up to 97s on production.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01F1a5xpHUBhaSXJoETbF26v
@vercel

vercel Bot commented Nov 24, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
api-docs Ready Ready Preview Nov 24, 2026 8:50am UTC

@mattkepple
mattkepple marked this pull request as ready for review November 24, 2026 08:57
@mattkepple
mattkepple merged commit 9b4f272 into main Nov 24, 2026
3 checks passed

This branch was successfully deployed

1 active deployment
Preview — 6a563778 Deployed Nov 24, 2026 by vercel[bot]
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