Skip to content

rdt-model-api

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.

Phase 4 — Deploy

Terminal window
# 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-tracking
KeySourceDescription
mulesoft.client_idroche-data.tomlMulesoft Anypoint client ID
MULESOFT_CLIENT_SECRETEnvironment variableMulesoft client secret
  • rdt-model-pull (model.json)
  • rdt-model-govern (governance.json)
FileFormatDescription
apis/{entity}/openapi.yamlYAMLOpenAPI 3.1 specification

Blocked until access task A09 (Mulesoft) resolves. Generates spec locally in --dry-run mode until then.