Skip to content

Document GET /auth/setup in OpenAPI#45

Merged
LumenPrima merged 1 commit into
masterfrom
agent/reviewer/c70875ac
May 26, 2026
Merged

Document GET /auth/setup in OpenAPI#45
LumenPrima merged 1 commit into
masterfrom
agent/reviewer/c70875ac

Conversation

@LumenPrima
Copy link
Copy Markdown
Member

Summary

  • Adds GET /auth/setup operation to openapi.yaml
  • Response schema: { needs_setup: boolean, user_count: integer } — matches SetupHandler.Status() in internal/api/setup.go
  • security: [] (unauthenticated), tags: [auth], 200 + 500 responses
  • Enables dashboard type generation to cover the first-run setup flow without hand-written schema patches

Test plan

  • Verify GET /auth/setup returns { needs_setup: true, user_count: 0 } on fresh instance
  • Verify it returns { needs_setup: false, user_count: N } after users exist
  • Confirm openapi-generated types cover checkNeedsSetup() in the dashboard

Closes AUG-31

🤖 Generated with Claude Code

Add the GET operation for first-run setup status check (needs_setup,
user_count) alongside the existing POST /auth/setup admin creation.
This lets generated dashboard types cover the setup flow without
hand-written schema patches.

Co-authored-by: multica-agent <github@multica.ai>
@LumenPrima LumenPrima force-pushed the agent/reviewer/c70875ac branch from b1ac1b4 to d60c784 Compare May 26, 2026 20:15
@LumenPrima LumenPrima merged commit 421d386 into master May 26, 2026
1 check passed
@LumenPrima LumenPrima deleted the agent/reviewer/c70875ac branch May 26, 2026 20:16
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