rdt-model-api
Purpose
Section titled “Purpose”rdt-model-api generates an OpenAPI 3.1 specification from the entity model and publishes it to Mulesoft Anypoint as a managed API. This gives consumers a standard REST interface to query the data product.
Pipeline phase
Section titled “Pipeline phase”Phase 4 — Deploy
# Generate OpenAPI spec (dry run)cargo run -p rdt-model-api -- --target dev generate --entity waste-tracking --dry-run
# Publish to Mulesoft (requires A09 access)cargo run -p rdt-model-api -- --target dev publish --entity waste-trackingConfiguration
Section titled “Configuration”| Key | Source | Description |
|---|---|---|
mulesoft.client_id | roche-data.toml | Mulesoft Anypoint client ID |
MULESOFT_CLIENT_SECRET | Environment variable | Mulesoft client secret |
Dependencies
Section titled “Dependencies”rdt-model-pull(model.json)rdt-model-govern(governance.json)
Output
Section titled “Output”| File | Format | Description |
|---|---|---|
apis/{entity}/openapi.yaml | YAML | OpenAPI 3.1 specification |
Access gate
Section titled “Access gate”Blocked until access task A09 (Mulesoft) resolves. Generates spec locally in --dry-run mode until then.