- Add Foundry project configuration (foundry.toml, foundry.lock) - Add Solidity contracts (TokenFactory138, BridgeVault138, ComplianceRegistry, etc.) - Add API definitions (OpenAPI, GraphQL, gRPC, AsyncAPI) - Add comprehensive test suite (unit, integration, fuzz, invariants) - Add API services (REST, GraphQL, orchestrator, packet service) - Add documentation (ISO20022 mapping, runbooks, adapter guides) - Add development tools (RBC tool, Swagger UI, mock server) - Update OpenZeppelin submodules to v5.0.0
Swagger UI Server
Interactive API documentation server for the eMoney Token Factory API.
Quick Start
# Install dependencies
pnpm install
# Start server
pnpm start
# Or in development mode
pnpm run dev
The Swagger UI will be available at:
- Documentation: http://localhost:8080/api-docs
- OpenAPI JSON: http://localhost:8080/openapi.json
- OpenAPI YAML: http://localhost:8080/openapi.yaml
Features
- ✅ Interactive API documentation
- ✅ Try-it-out functionality
- ✅ Request/response examples
- ✅ Authentication testing (OAuth2, mTLS, API Key)
- ✅ Schema exploration
- ✅ Export OpenAPI spec (JSON/YAML)
Configuration
Set environment variables:
export SWAGGER_PORT=8080 # Default: 8080
Usage
- Navigate to http://localhost:8080/api-docs
- Click "Authorize" to set up authentication
- Explore endpoints by expanding sections
- Use "Try it out" to test API calls
- View request/response schemas
Integration
This server can be:
- Deployed standalone for documentation
- Integrated into main API server
- Used in CI/CD for API validation
- Embedded in developer portals