Skip to content

docs: document one verb per status endpoint - #35

Merged
felipegarcia98 merged 1 commit into
mainfrom
docs/status-endpoints-verbs
Sep 10, 2026
Merged

felipegarcia98 merged 1 commit into
mainfrom
docs/status-endpoints-verbs

Conversation

@felipegarcia98

Copy link
Copy Markdown

Follow-up to #34.

Why

That PR noted, for each of the two status endpoints, that the other verb also works:

  • change_state: "GET is also accepted, with the same parameters."
  • list_states: "POST is also accepted. The endpoint takes no parameters either way."

Both statements are true of the routes, but stating them in the reference reads as an endorsement. A GET that mutates the status of an answer is exactly the shape we do not want integrations to build, and it is the kind of call that gets retried by a crawler, a prefetch or a link preview.

What changed

Each endpoint now documents the single verb its purpose calls for: POST for the status change, GET for the lookup. On list_states the useful half of the sentence is kept as "The endpoint takes no parameters."

The routes themselves are untouched, so anything already calling either verb keeps working. Two lines changed, nothing else.

No changelog entry: the 10-Sep-2026 entry that announced these endpoints never mentioned verbs, so it stays accurate as is.

🤖 Generated with Claude Code

The reference noted that change_state also accepts GET and that
list_states also accepts POST. Both routes do accept the second verb,
but documenting it reads as an endorsement: a GET that mutates an
answer's status is what we do not want integrations to build.

Each endpoint now shows a single verb, the one its purpose calls for:
POST for the status change, GET for the lookup. The routes are
unchanged, so existing integrations keep working either way.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@felipegarcia98 felipegarcia98 self-assigned this Sep 10, 2026
@felipegarcia98
felipegarcia98 merged commit 76d4804 into main Sep 10, 2026
4 checks passed
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