Interactive API Explorer
Best Way to Explore the API
Start the API server and visit http://localhost:8000/docs for the best interactive experience with Swagger UI!
Built-in Interactive Documentation
LineageBridge includes three built-in API documentation interfaces:
Swagger UI (Recommended)
URL: http://localhost:8000/docs
Full-featured interactive API explorer with:
- ✅ Test all endpoints directly in your browser
- ✅ Auto-populated request bodies with examples
- ✅ One-click authentication
- ✅ Response visualization
- ✅ Download responses as JSON
How to use:
-
Start the API server:
-
Open http://localhost:8000/docs in your browser
-
Click "Authorize" if using API key authentication
-
Expand any endpoint and click "Try it out" to test
ReDoc
URL: http://localhost:8000/redoc
Clean, modern API reference documentation:
- Hierarchical navigation
- Search functionality
- Code samples in multiple languages
- Markdown-rendered descriptions
OpenAPI JSON
URL: http://localhost:8000/openapi.json
Machine-readable OpenAPI 3.1 specification for:
- API client generation
- Testing automation
- Integration with API tools
- Schema validation
Download OpenAPI Spec
Download the full OpenAPI specification for offline use or code generation:
# From running API server
curl http://localhost:8000/openapi.json -o openapi.yaml
# Or from repository (always latest)
curl https://raw.githubusercontent.com/takabayashi/lineage-bridge/main/docs/openapi.yaml -o openapi.yaml
Or download directly: openapi.yaml
Integration Examples
Postman
Import the OpenAPI spec into Postman:
- Download the spec:
curl http://localhost:8000/api/v1/openapi.yaml -o openapi.yaml - In Postman: Import > File > Select
openapi.yaml - Collections and environments will be auto-generated
Insomnia
Import into Insomnia:
- Download the spec
- Import/Export > Import Data > From File
- Select
openapi.yaml
HTTPie Desktop
Use HTTPie Desktop for a beautiful API testing experience:
- Download HTTPie Desktop from https://httpie.io/desktop
- Import the OpenAPI spec
- Test endpoints with syntax highlighting and auto-completion
API Clients
Generate type-safe API clients from the OpenAPI spec:
Python
# Using openapi-python-client
pip install openapi-python-client
openapi-python-client generate --url http://localhost:8000/api/v1/openapi.yaml
TypeScript
# Using openapi-typescript
npm install openapi-typescript --save-dev
npx openapi-typescript http://localhost:8000/api/v1/openapi.yaml -o lineage-bridge.d.ts
Go
# Using oapi-codegen
go install github.com/deepmap/oapi-codegen/cmd/oapi-codegen@latest
oapi-codegen -generate types,client -package lineagebridge openapi.yaml > client.go
Java
# Using OpenAPI Generator
openapi-generator-cli generate \
-i openapi.yaml \
-g java \
-o ./java-client \
--additional-properties=library=okhttp-gson
Schema Validation
Validate the OpenAPI spec:
# Using openapi-spec-validator
pip install openapi-spec-validator
openapi-spec-validator openapi.yaml