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