Running transformations

Once your transforms are setup (Setting up transformations), you can run your data conversion!

To do so, POST http(s)://<vonk-endpoint>/StructureMap/<logical id>/$transform with content to transform as the resource body. Make sure to set the Content-Type to either application/json or application/xml accordingly.

For the example we’ve been working with so far, POST http://localhost:4080/StructureMap/tutorial/$transform with a sample resource as the body.

Simplified sample call:

../../_images/sample-convert-output.png

With this done, your custom resource and mapping file is registered in Vonk, and your data transformation is working. Gefeliciteerd! 🎉