Consuming REST
Consuming a REST API is simply a way to indicate that your application is using that REST API or making a call to it. That call may be a GET
, POST
, or any of the call types that are available for that API that another application has made available and you are connected to. In this section, we will discuss what some of the Mendix native artifacts are for helping you connect your application to a REST API and start consuming it. Later, in the Let's go make it! section, we will put into practice some of the things mentioned in this section.
JSON structure
The first artifact we will discuss is called a JSON structure. This allows us to store a JSON string to help define how it is constructed. This then allows Studio Pro to create a structure of the schema and ultimately define what the Mendix objects will be.
The JSON structure is made up of two main components: the JSON snippet and the Structure. The JSON snippet is simply the JSON string, and the structure...