OpenAPI Quick Start Guide
5-minute guide to using the generated OpenAPI specifications and SDKs.π Getting Started
View API Documentation
π¦ Using the Python SDK
Install
Basic Usage
π Using the TypeScript SDK
Install
Basic Usage
π Authentication Examples
JWT Login
Using JWT Token
API Key Authentication
π Common Operations
Create API Key
Export GDPR Data
SCIM User Provisioning
π API Endpoints Reference
Quick Reference Table
| Category | Endpoint | Method | Auth Required |
|---|---|---|---|
| Metadata | /api/version | GET | β |
| Auth | /auth/login | POST | β |
| Auth | /auth/refresh | POST | β |
| API Keys | /api/v1/api-keys/ | POST | β |
| API Keys | /api/v1/api-keys/ | GET | β |
| API Keys | /api/v1/api-keys/{id}/rotate | POST | β |
| API Keys | /api/v1/api-keys/{id} | DELETE | β |
| GDPR | /api/v1/users/me/data | GET | β |
| GDPR | /api/v1/users/me/export | GET | β |
| GDPR | /api/v1/users/me | PATCH | β |
| GDPR | /api/v1/users/me | DELETE | β |
| GDPR | /api/v1/users/me/consent | GET | β |
| GDPR | /api/v1/users/me/consent | POST | β |
| SCIM | /scim/v2/Users | POST | β |
| SCIM | /scim/v2/Users/{id} | GET | β |
| SCIM | /scim/v2/Users?filter=... | GET | β |
| Health | /health | GET | β |
| Health | /health/ready | GET | β |
π§ͺ Testing Your API
Health Check
Swagger UI (Interactive)
Open http://localhost:8000/docs in your browser:- Click βAuthorizeβ button
- Login at
/auth/loginto get JWT - Enter JWT token in authorization dialog
- Try any endpoint interactively
cURL Examples
π§ Development Workflow
1. Add New Endpoint
2. Register Router
3. Regenerate OpenAPI
4. Regenerate SDKs
5. Test
π Pagination Usage
π― Key Files
| File | Purpose |
|---|---|
openapi/v1.json | Main API specification (22 endpoints) |
openapi/mcp-tools.json | MCP tools specification |
clients/python/ | Python SDK (mcp-client) |
clients/typescript/ | TypeScript SDK (mcp-client) |
clients/go/ | Go SDK (mcpclient) |
docs/api-compliance-report.mdx | Comprehensive analysis |
docs/API_GATEWAY_DEPLOYMENT.md | Deployment guide |
docs/OPENAPI_IMPLEMENTATION_SUMMARY.md | Full summary |
π Troubleshooting
Swagger UI Shows βUnauthorizedβ
SDK Import Errors
OpenAPI Generation Fails
π Need Help?
- Swagger UI: http://localhost:8000/docs
- API Compliance Report:
docs/api-compliance-report.mdx - Deployment Guide:
docs/API_GATEWAY_DEPLOYMENT.md - Full Summary:
docs/OPENAPI_IMPLEMENTATION_SUMMARY.md