Example project to illustrate how you can use the Mendix Connector Kit to create APIs for your Mendix application using microflows.
This project implements a connector to create an API for a mendix project implemented using microflows. The following Java actions are implemented to enable this:
- Register API endpoint
- Register API endpoint with mapping
- API Header Location
- API Status 201 - Created
- API Status 404 - Not found
The following action illustrates how to register a new API:
The following microflow implements the get product by EAN API:
Another example, a microflow to implement create new product API:
The following action illustrates how to register an OQL endpoint:
The following registered an endpoint to return images:
The implementation returns a subclass of a FileDocument entity:
The microflow also illustrates how you can set the content type of the response and how you can control caching.
The following registers an API endpoint returning a pdf report:
Implementation of the endpoint generating a pdf report:
To run this project from the Mendix modeler you need to download the required java dependensies. You can do this by running runivy.cmd