feat: enhance API and middleware functionality: add public API routes, implement program and course member checks, and improve rate limiting for invite acceptance. Update OpenAPI spec generation to focus on public API endpoints and add new middleware for automation key scopes. Include new documentation for lesson AI features and public API tests.

This commit is contained in:
Rotimi Best
2026-04-12 08:58:41 +01:00
parent 5a8f50f67b
commit d6e812d08b
573 changed files with 31964 additions and 8708 deletions
+6 -5
View File
@@ -1,6 +1,6 @@
# OpenAPI Spec Generator Script
This script generates the OpenAPI specification from your Hono application and optionally uploads it to a Cloudflare R2 bucket.
This script generates the OpenAPI specification for the public API routes only and optionally uploads it to a Cloudflare R2 bucket.
## Usage
@@ -38,10 +38,11 @@ CLOUDFLARE_ACCOUNT_ID=your_account_id
The script will:
1. **Generate** the OpenAPI specification from your Hono app routes
2. **Save locally** to `dist/openapi/openapi.json`
3. **Upload to R2** (if credentials provided):
- `openapi/openapi-YYYY-MM-DD.json` (dated version)
- `openapi/openapi-latest.json` (latest version)
2. **Filter** the output to `/public-api/v1/*`
3. **Save locally** to `dist/openapi/public-api/openapi.json`
4. **Upload to R2** (if credentials provided):
- `openapi/public-api/openapi-YYYY-MM-DD.json` (dated version)
- `openapi/public-api/openapi-latest.json` (latest version)
## GitHub Action Integration