Download OData service metadata (EDMX)
download_odata_service_metadataFetch OData service metadata (EDMX) from V2/V4 services via URL, SAP system, or BTP destination, save it as metadata.xml, and get a summary of entity sets and types.
Instructions
Downloads the $metadata EDMX document of an OData service (V2 or V4) and saves it as localService/metadata.xml (or a custom path). Provide serviceUrl directly, or a systemName from list_sap_systems plus servicePath, or a BTP destination (destination + optional servicePath). Returns a summary of entity sets and types.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| savePath | No | Where to save metadata.xml (default: <workspace>/metadata.xml) | |
| serviceUrl | No | Full OData service URL, e.g. https://host:port/sap/opu/odata4/sap/my_v4_service?sap-client=000 | |
| systemName | No | Name of a configured SAP system (see list_sap_systems) | |
| destination | No | BTP destination name (see list_btp_destinations) — auth headers are applied automatically | |
| servicePath | No | Service path relative to the system/destination URL, e.g. /sap/opu/odata/sap/SEPMRA_PROD_MAN |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| savedTo | No | ||
| sourceUrl | No | ||
| entitySets | Yes | ||
| namespaces | Yes | ||
| annotations | No | ||
| entityTypes | Yes | ||
| odataVersion | Yes | ||
| annotationTargets | No |