Specs API
Base path: /api/specs
GET /api/specs
List all uploaded spec files.
Response 200:
[ { "name": "connectwise.json", "title": "ConnectWise PSA API", "version": "2023.1", "pathCount": 412, "size": 132096, "updatedAt": "2024-01-10T08:00:00.000Z" }]GET /api/specs/meta
Get metadata for all specs without downloading the full spec bodies.
Same response shape as GET /api/specs.
GET /api/specs/:name
Download a spec file. Returns JSON by default. Add Accept: application/yaml header for YAML.
Response 200: Raw OpenAPI document (JSON or YAML).
POST /api/specs/:name
Upload or overwrite a spec file.
Request body: Raw OpenAPI JSON or YAML document.
Content-Type: application/json or application/yaml
# Upload JSONcurl -X POST http://localhost:3000/api/specs/my-api.json \ -H "Content-Type: application/json" \ -d @my-api.json
# Upload YAMLcurl -X POST http://localhost:3000/api/specs/my-api.yaml \ -H "Content-Type: application/yaml" \ --data-binary @my-api.yamlResponse 201: { "name": "my-api.json", "pathCount": 42 }
DELETE /api/specs/:name
Delete a spec file. Products referencing this spec will lose their API browser.
Response 200: { "deleted": "my-api.json" }
GET /scalar/:name
Returns the Scalar API reference HTML page for a spec. Opens in browser with full Try-it client and code generation.
http://localhost:3000/scalar/connectwise.json