Generate external API documentation in HTML format for Squint APIs. Use when asked to document an API endpoint, create API docs for external consumers, or generate HTML documentation for endpoints. Output is Google Docs compatible.
Generate HTML API docs for Squint endpoints.
Before writing docs, gather information from the codebase:
api/src/infrastructure/routes/ for the relevant router fileGetProceduresHandler)api/src/infrastructure/services/ - understand request validation, query params, and response assembly@squintinc/datamodels-ts-cloud/v1 or look for Zod schemasapi/src/infrastructure/repositories/ for SQL queries showing exact response shapeEach endpoint doc includes:
{HTTP_METHOD} {Endpoint Name} Endpoint| Code Type | Doc Type |
|---|---|
string (UUID format) | UUID |
string | string |
number, int | integer |
number (decimal) | float |
boolean | boolean |
Date, DateSchema | ISO 8601 |
string[] | string[] |
SomeType[] | array |
| Nested object | object (reference sub-object table) |
/v1/integrations/...)For API key authentication, document as:
{permission} permission"Authorization: Bearer <prefix>:<secret>/v1/workspaces/...)For Firebase JWT authentication, document as:
Authorization: Bearer <token>f1e2d3c4-b5a6-7890-cdef-1234567890ab)2025-01-06T10:00:00.000Z)null for nullable fields commonly nullWrite HTML files to docs/api-docs/api/v1/:
docs/api-docs/api/v1/
├── integrations/workspaces/ # /v1/integrations/workspaces/{workspaceId}/...
└── workspaces/ # /v1/workspaces/{workspaceId}/...
Naming: {resource}.html or {resource}-{action}.html (e.g., tasks-create.html)
See references/html-templates.md for:
To preview HTML docs locally in VS Code/Cursor:
.html file