SAP Home Learn Build Integrate Model Operate Extend with AI ConnectTutorial navigator Knowledge Graph API Devtoberfest Developer Advocates App Space

Manage my Account SAP Devs YouTube ↗ Learnings ↗ Community ↗ Provide Feedback ↗
Logout
โคข Open full site

Consume a REST API in an MDK App

Create a fully functional multi-channel application consuming Petstore REST API.

Overview

🎓 intermediate 30 min. Mobile Development Kit ClientIntermediateIosAndroidMobileSAP Business Technology PlatformSAP Mobile ServicesSAP Build CodeSAP BuildSAP Business Application Studio

You will learn

  • โœ”How to create a mobile project in SAP Build Lobby
  • โœ”How to configure a Mobile Services application in SAP Business Application Studio via Storyboard
  • โœ”How to configure a REST endpoint as a destination in Mobile Services application
  • โœ”How to create a MDK Service file pointing to REST endpoint destination
  • โœ”How to use RestService SendRequest Action to make directly call to Petstore API
Jitendra Kansal J Jitendra Kansal July 9, 2026
Created by October 19, 2023
Contributors

Prerequisites

Prerequisites

Play Store QR Code
Android
App Store QR Code
iOS

(If you are connecting to AliCloud accounts, you will need to brand your custom MDK client by allowing custom domains.)

Steps

Intro

You may clone an existing metadata project from the MDK Tutorial GitHub repository and start directly with step 15 in this tutorial but make sure you complete step 2&3.


Mobile development kit allows you to consume REST APIs. You need to first define REST endpoint as a destination and then easily bind a RestServiceTarget to an MDK control e.g., ObjectTable, ContactCell, ObjectCollection etc. This assumes the REST service returns JSON similar to how OData requests are returned.

A publicly available Petstore API from swagger.io is used as an example in this tutorial.

MDK
MDK

Step 1 Understand the Petstore API to retrieve data
โ€”

  1. Open Swagger Petstore, find all pets with status as available.

    MDK
    MDK

  2. Click Execute to get the response.

    MDK
    MDK

    By looking at results, you now have understood

    • what is the Request URL to retrieve pet information
    • what is header parameter to be passed in GET call
    • what is the response code
    • how the response body looks like
Step 2 Create a New Project Using SAP Build
+
Step 3 Configure the Project Using Storyboard
+
Step 4 Create a new MDK Service file
+
Step 5 Display Pets list in MDK page
+
Step 6 Deploy the Project
+
Step 7 Display the QR code for onboarding the Mobile app
+
Step 8 Run the Project
+
Step 9 Understand the Petstore API to create new record
+
Step 10 Create new page for new pet record
+
Step 11 Send data to the Backend
+
Step 12 Add cancel button on create pet page
+
Step 13 Navigate to create a new Pet Record
+
Step 14 Redeploy the Project
+
Step 15 Update the app
+

Resources

Discussion

Share feedback on this tutorial or join the conversation in SAP Community.

Submit detailed feedback Discuss in Community
Steps
Step 1 of 15
1. Understand the Petstore API to retrieve data 2. Create a New Project Using SAP Build 3. Configure the Project Using Storyboard 4. Create a new MDK Service file 5. Display Pets list in MDK page 6. Deploy the Project 7. Display the QR code for onboarding the Mobile app 8. Run the Project 9. Understand the Petstore API to create new record 10. Create new page for new pet record 11. Send data to the Backend 12. Add cancel button on create pet page 13. Navigate to create a new Pet Record 14. Redeploy the Project 15. Update the app

Learn more →