Contact Us 1-800-596-4880

Transforming a RAML OData v2 API to a CSDL OData v4 API

Migrate from APIkit for OData v2 to OData v4 by reusing your RAML entity model: Studio converts odata.raml into odata.csdl.xml (Common Schema Definition Language) so you can scaffold OData v4 flows from the same types. The new file lands under the api folder next to your existing assets.

In Studio, right-click your odata.raml file and select Mule > Generate CSDL file.

*Generate CSDL file* option highlighted in the Mule section when right-clicking the OData file in the Package Explorer

APIkit generates an odata.csdl.xml file in the api folder.

*odata.csdl.xml* new file highlighted in the *api* folder, in the *Package Explorer*, and the XML code of the *odata.csdl.xml* file after its transformation