Skip to content

docs: fix SAT quick-start example to match the real OpenAPI spec#41

Open
dmchaledev wants to merge 1 commit into
mainfrom
claude/elegant-edison-p4dn5t
Open

docs: fix SAT quick-start example to match the real OpenAPI spec#41
dmchaledev wants to merge 1 commit into
mainfrom
claude/elegant-edison-p4dn5t

Conversation

@dmchaledev

Copy link
Copy Markdown
Contributor

Summary

The README's SAT quick-start example ("Enroll a User") posted to
https://api.hailbytes.com/sat/v1/users with a {email, group_id} body.
Neither the endpoint, host, nor request body correspond to anything in
sat/openapi.yaml:

  • There is no /users route for enrollment — POST /users/ is an
    Admin-only endpoint for creating system accounts, gated by
    modify_system permission, and doesn't accept email/group_id.
  • sat/openapi.yaml declares servers: [{url: /api}] — a relative path,
    because SAT is a self-hosted, open-source platform, not a shared
    HailBytes-hosted API like ASM. The README's api.hailbytes.com host is
    misleading for this API.

Replaced the example with POST /groups/, which is the real, spec-matching
way to add a target (recipient) to a phishing simulation group, and added a
note clarifying that SAT is self-hosted.

Test plan

  • Verified POST /groups/ and its Group/Target schemas exist in
    sat/openapi.yaml and match the new example's request body
    (name, targets: [{email, first_name, last_name}]).
  • Confirmed no endpoint or schema in the spec matches the old
    {email, group_id} example.
  • spectral lint on both specs still passes (docs-only change, specs
    untouched).

Co-Authored-By: Claude Sonnet 5 noreply@anthropic.com

https://claude.ai/code/session_01K3DKc79upGPwzKoHaeLxFd


Generated by Claude Code

The README's "Enroll a User" example posted to a nonexistent
`/sat/v1/users` endpoint with an `{email, group_id}` body — SAT has no
such route or schema. It also implied a shared `api.hailbytes.com`
host, but SAT is self-hosted (openapi server is the relative `/api`).
Replaced it with a real, spec-matching example: adding a target via
`POST /groups/`.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01K3DKc79upGPwzKoHaeLxFd
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