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

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 August 21, 2026
Created by October 19, 2023
Contributors

More from Jitendra Kansal

See all 34 tutorials by Jitendra Kansal →

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.

Petstore App Final Result Overview
Petstore App Final Result Overview

Step 1 Understand the Petstore API to retrieve data

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

    Swagger Petstore Find Pets By Status
    Swagger Petstore Find Pets By Status

  2. Click Execute to get the response.

    Swagger Petstore GET Pets Execute Response
    Swagger Petstore GET Pets Execute Response

    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