Skip to content

chore(api): OpenAPI 3.0 spec for manager v1 API + spectral CI lint - #67

Merged
PenguinzTech merged 2 commits into
v2.1.xfrom
chore/openapi-spec
Jul 27, 2026
Merged

chore(api): OpenAPI 3.0 spec for manager v1 API + spectral CI lint#67
PenguinzTech merged 2 commits into
v2.1.xfrom
chore/openapi-spec

Conversation

@PenguinzTech

Copy link
Copy Markdown
Contributor

OpenAPI 3.0.3 spec for the manager REST API at openapi/v1.yaml — 86 operations / 58 paths / 12 tags, bearer-JWT security scheme with security: [] only on login/refresh, shared Error schema, scope hints per endpoint. .spectral.yaml (spectral:oas) with lint wired into the build workflow and Makefile (graceful npx fallback); .gitignore carve-out so the spec survives the repo's broad *.yaml ignore. Spectral passes (advisory warnings only). Live authenticated docs route intentionally deferred to the Quart migration per the docs-auth standard.

Stack note: bases on chore/dedup-reusable-code (top of the #53#59 chain); auto-retargets toward v2.1.x as the stack merges bottom-up.

🤖 Generated with Claude Code

PenguinzTech and others added 2 commits July 25, 2026 15:17
Authored comprehensive OpenAPI 3.0.3 spec covering all 86 manager API endpoints
across 12 blueprint modules (Auth, Users, Teams, Zones, DNS Servers, DHCP, Time,
Tokens, IOC Feeds, WHOIS, Analytics, Client Config). Spec includes:

- Bearer JWT security scheme with pre-auth exceptions for login/refresh
- Complete request/response schemas with proper status codes
- Scope-based authorization hints in operation descriptions
- All path parameters, query filters, and request bodies documented
- Shared Error schema and per-blueprint tags for organization

Spectral linting integrated into CI (build.yml) and local lint target (Makefile).
Live docs/spec route deferred to Quart migration (auth-gating requires request
context not available in Flask). .gitignore updated to track spec and Spectral
config files.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@PenguinzTech PenguinzTech self-assigned this Jul 25, 2026

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry @PenguinzTech, you have reached your weekly rate limit of 500000 diff characters.

Please try again later or upgrade to continue using Sourcery

@PenguinzTech
PenguinzTech changed the base branch from chore/dedup-reusable-code to v2.1.x July 27, 2026 00:55
@PenguinzTech
PenguinzTech merged commit b497e6a into v2.1.x Jul 27, 2026
3 of 4 checks passed
@PenguinzTech
PenguinzTech deleted the chore/openapi-spec branch July 27, 2026 01:14
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