Consuming REST services with Mendixww2.mendix.com/rs/729-ZYH-434/images/REST webinar.pdfMendix...
Transcript of Consuming REST services with Mendixww2.mendix.com/rs/729-ZYH-434/images/REST webinar.pdfMendix...
![Page 1: Consuming REST services with Mendixww2.mendix.com/rs/729-ZYH-434/images/REST webinar.pdfMendix terminology: REST Service Web Service App Service Odata Service Data structures supported:](https://reader035.fdocuments.us/reader035/viewer/2022062317/5ec937e912898708316ec2dd/html5/thumbnails/1.jpg)
Consuming REST services with Mendix
![Page 2: Consuming REST services with Mendixww2.mendix.com/rs/729-ZYH-434/images/REST webinar.pdfMendix terminology: REST Service Web Service App Service Odata Service Data structures supported:](https://reader035.fdocuments.us/reader035/viewer/2022062317/5ec937e912898708316ec2dd/html5/thumbnails/2.jpg)
1. Case introduction
2. How to build a prototype using Mendix
3. Backgrounds on REST
4. Tips & Tricks
5. Q & A
Outline
![Page 3: Consuming REST services with Mendixww2.mendix.com/rs/729-ZYH-434/images/REST webinar.pdfMendix terminology: REST Service Web Service App Service Odata Service Data structures supported:](https://reader035.fdocuments.us/reader035/viewer/2022062317/5ec937e912898708316ec2dd/html5/thumbnails/3.jpg)
Get external metadata into Mendix for selecting a song
eCard platform REST Music Metadata
How can we use REST to retrieve song metadata from Spotify?
![Page 4: Consuming REST services with Mendixww2.mendix.com/rs/729-ZYH-434/images/REST webinar.pdfMendix terminology: REST Service Web Service App Service Odata Service Data structures supported:](https://reader035.fdocuments.us/reader035/viewer/2022062317/5ec937e912898708316ec2dd/html5/thumbnails/4.jpg)
1. Extract REST endpoints needed from Spotify API documentation.
2. Figure out the messaging structure to search and collect metadata
3. Build the prototype in Mendix
How to build this prototype using Mendix?
![Page 5: Consuming REST services with Mendixww2.mendix.com/rs/729-ZYH-434/images/REST webinar.pdfMendix terminology: REST Service Web Service App Service Odata Service Data structures supported:](https://reader035.fdocuments.us/reader035/viewer/2022062317/5ec937e912898708316ec2dd/html5/thumbnails/5.jpg)
Key concepts REST
Consumer Provider
![Page 6: Consuming REST services with Mendixww2.mendix.com/rs/729-ZYH-434/images/REST webinar.pdfMendix terminology: REST Service Web Service App Service Odata Service Data structures supported:](https://reader035.fdocuments.us/reader035/viewer/2022062317/5ec937e912898708316ec2dd/html5/thumbnails/6.jpg)
Key concepts REST
Consumer Provider
• Consumer initiates the call• Provider receives it
![Page 7: Consuming REST services with Mendixww2.mendix.com/rs/729-ZYH-434/images/REST webinar.pdfMendix terminology: REST Service Web Service App Service Odata Service Data structures supported:](https://reader035.fdocuments.us/reader035/viewer/2022062317/5ec937e912898708316ec2dd/html5/thumbnails/7.jpg)
Key concepts REST
Consumer ProviderJSON XML
![Page 8: Consuming REST services with Mendixww2.mendix.com/rs/729-ZYH-434/images/REST webinar.pdfMendix terminology: REST Service Web Service App Service Odata Service Data structures supported:](https://reader035.fdocuments.us/reader035/viewer/2022062317/5ec937e912898708316ec2dd/html5/thumbnails/8.jpg)
Key concepts REST
Consumer ProviderJSON XML
Consumer consumes a service published by a provider
![Page 9: Consuming REST services with Mendixww2.mendix.com/rs/729-ZYH-434/images/REST webinar.pdfMendix terminology: REST Service Web Service App Service Odata Service Data structures supported:](https://reader035.fdocuments.us/reader035/viewer/2022062317/5ec937e912898708316ec2dd/html5/thumbnails/9.jpg)
Key concepts REST
Consumer ProviderJSON XML
Representation in JSON: Representation in XML:
![Page 10: Consuming REST services with Mendixww2.mendix.com/rs/729-ZYH-434/images/REST webinar.pdfMendix terminology: REST Service Web Service App Service Odata Service Data structures supported:](https://reader035.fdocuments.us/reader035/viewer/2022062317/5ec937e912898708316ec2dd/html5/thumbnails/10.jpg)
Key concepts REST
Consumer ProviderJSON XML
HTTP
![Page 11: Consuming REST services with Mendixww2.mendix.com/rs/729-ZYH-434/images/REST webinar.pdfMendix terminology: REST Service Web Service App Service Odata Service Data structures supported:](https://reader035.fdocuments.us/reader035/viewer/2022062317/5ec937e912898708316ec2dd/html5/thumbnails/11.jpg)
Key concepts REST
Consumer Provider
HTTP
XML
SOAP
![Page 12: Consuming REST services with Mendixww2.mendix.com/rs/729-ZYH-434/images/REST webinar.pdfMendix terminology: REST Service Web Service App Service Odata Service Data structures supported:](https://reader035.fdocuments.us/reader035/viewer/2022062317/5ec937e912898708316ec2dd/html5/thumbnails/12.jpg)
HTTP-based integration methods in Mendix
Mendix terminology: REST Service Web Service App Service Odata Service
Data structures supported:
XML & JSON SOAP (XML) N/A XML
Consume/Publish: Consume only (publish using module)
Consume & publish Consume & publish Publish only
Distinctivecharacteristic / typical usage
Popular recently for public open APIs
Strict on typing, popular inenterprise contexts
Plug-and-play Mendix integration
Very easy to publish, suitable for BI/reporting purposes
Available from Mendix version:
6.6.0 natively, lower versions using module
2.x 5.x 5.18
![Page 13: Consuming REST services with Mendixww2.mendix.com/rs/729-ZYH-434/images/REST webinar.pdfMendix terminology: REST Service Web Service App Service Odata Service Data structures supported:](https://reader035.fdocuments.us/reader035/viewer/2022062317/5ec937e912898708316ec2dd/html5/thumbnails/13.jpg)
Benefits of integrating using Mendix