Hi Alix,
In the learning path "Importing and Exporting Your Data", you can learn more about integrating with your Mendix application: https://academy.mendix.com/link/modules/138/lectures/5198/Learning-Objectives
If you have persisted data in the API, you have roughly 2 choices:
- either synchronize the data of the API to your Mendix app as persistant data (periodically)
- or use non-persistant entities in Mendix and retrieving/manipulating all data via REST Consume / JSON-structures / Mapping activities in your Microflows
If you want to use the offline functionality of Mendix apps, you probably need to do the first.
Mendix is a bit restricted when it comes to data structures, you cannot mix objects of different entities in one list. You could do something like shown below, but I personally would prefer to retrieve per entity.
{
"cars": [{"make":"VW", "wheels": 4}],
"planes": [{}]
}
In Mendix, it's easy to first create all JSON structures and then create import mappings based on those structures. If you click "Map automatically", Mendix will create Non-Persistent entities with the same attributes.
Hopefully this helps in the right direction.
Good luck!
Johan