docs: add OpenAPI/Swagger documentation for all API endpoints #33

Open
opened 2026-02-20 16:39:53 +00:00 by Clotho · 0 comments
Member

Problem

The package exposes multiple REST API endpoints but has no machine-readable API documentation. External developers integrating with the Entitlement API, Workspace API, or Webhook API have no reference beyond reading source code.

Endpoints to document

  • GET/POST/PUT/DELETE /api/v1/workspaces (WorkspaceController)
  • GET /api/v1/entitlements/check (EntitlementApiController)
  • POST /api/v1/entitlements/usage (EntitlementApiController)
  • GET /api/v1/entitlements/summary (EntitlementApiController)
  • POST/GET/PUT/DELETE /api/v1/entitlement-webhooks (EntitlementWebhookController)
  • Blesta provisioning endpoints

Acceptance Criteria

  • Add dedoc/scramble or darkaonline/l5-swagger to dev dependencies
  • Add OpenAPI annotations to all controller methods
  • Include authentication requirements, request schemas, and response schemas
  • Generate and commit openapi.json or host via route

Discovered during automated scan (issue #3)

## Problem The package exposes multiple REST API endpoints but has no machine-readable API documentation. External developers integrating with the Entitlement API, Workspace API, or Webhook API have no reference beyond reading source code. ## Endpoints to document - `GET/POST/PUT/DELETE /api/v1/workspaces` (WorkspaceController) - `GET /api/v1/entitlements/check` (EntitlementApiController) - `POST /api/v1/entitlements/usage` (EntitlementApiController) - `GET /api/v1/entitlements/summary` (EntitlementApiController) - `POST/GET/PUT/DELETE /api/v1/entitlement-webhooks` (EntitlementWebhookController) - Blesta provisioning endpoints ## Acceptance Criteria - Add `dedoc/scramble` or `darkaonline/l5-swagger` to dev dependencies - Add OpenAPI annotations to all controller methods - Include authentication requirements, request schemas, and response schemas - Generate and commit `openapi.json` or host via route _Discovered during automated scan (issue #3)_
Clotho added the
discovery
docs
P3
labels 2026-02-20 16:39:53 +00:00
Clotho was assigned by Charon 2026-02-20 23:46:45 +00:00
Charon added the
agent-ready
label 2026-02-21 01:31:51 +00:00
Sign in to join this conversation.
No description provided.