Retrieve a process model's model image
This article shows how to use the ADOXX API to retrieve a model image
.
The snippet below will fetch the image of a model
whose ID we retrieved (e.g. via a search call).
Based on the passed Accept header, the model data is either retrieved as JSON, or - in our case - as png image. The image is then written to a file on our hard disk.
note
The snippet below uses Basic Authentication.
Replace the values in angle brackets with values that fit your setup, e.g. instead of <HOST> use the host at which you access your ADONIS instance.
Click to view the code!
Loading code...
The result should look similar to the following:
Status Code: 200
Image written to '<FILE_PATH>'.