Skip to content

docs(readme): add the missing /v1/whoami row to the endpoint table#164

Merged
CryptoJones merged 1 commit into
masterfrom
docs/readme-whoami-endpoint
May 19, 2026
Merged

docs(readme): add the missing /v1/whoami row to the endpoint table#164
CryptoJones merged 1 commit into
masterfrom
docs/readme-whoami-endpoint

Conversation

@CryptoJones
Copy link
Copy Markdown
Owner

Closes #163.

Summary

README's Endpoints table covered every /v1/* and meta route except /v1/whoami. The endpoint exists in app/routers/router.js:82 and is documented in OpenAPI, but readers of the README didn't see it. Whoami's distinct auth contract — header MUST be present, but the key need NOT resolve — is what makes it useful as a SDK wiring-check, so the row explicitly calls that out.

Test plan

  • npm run lint — clean
  • npm test — 614 passed, 15 skipped (unchanged; doc-only)

Proudly Made in Nebraska. Go Big Red! 🌽 https://xkcd.com/2347/

The Endpoints table in README.md listed every /v1/* domain
endpoint plus /healthz, /metrics, /docs, and /openapi.json, but
missed `/v1/whoami` — the identity-probe endpoint that returns
`{authenticated, isMaster, companyId}` for the calling authKey.
The route exists in `app/routers/router.js` (line 82) and in the
OpenAPI spec (`app/config/openapi.js:388`), so SDK clients reading
the spec found it; readers of the README didn't.

Add a one-line entry between `/openapi.json` and `/v1/customer/:id`
that calls out the distinct auth contract — header MUST be
present (403 if missing) but the key need NOT resolve (200 with
`authenticated: false` for unknown keys). That's the discriminator
that makes whoami useful as a wiring-check vs. inferring from a
domain endpoint's 4xx.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@CryptoJones CryptoJones merged commit 76d338f into master May 19, 2026
3 checks passed
@CryptoJones CryptoJones deleted the docs/readme-whoami-endpoint branch May 19, 2026 08:01
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.

docs(readme): /v1/whoami endpoint missing from the endpoint table

1 participant