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

Test the Business Rules API from SAP API Business Hub

Use SAP API Business Hub to test and run the business rules API to see how business rules can be consumed from a custom application.

Overview

🎓 beginner 10 min. Business RulesBeginnerCloudSAP Business Technology PlatformSAP BTP Cloud Foundry Environment

You will learn

  • โœ”How to use Business Rules APIs
  • โœ”How to test Business Rules project
Vandana Vasudevan V Vandana Vasudevan December 10, 2024
Created by December 10, 2024
Contributors

Prerequisites

Prerequisites

Steps

Intro

After a rule service is deployed to a custom application, the rule service should be invoked to implement the decision logic. In this tutorial, we will simulate the rule service invocation by invoking the rule service from SAP API Business Hub.

Business Rules REST APIs are available on SAP API Business Hub which lets you execute rules from custom applications and external REST clients. Since these APIs are based on OAuth 2.0 authorization, you need the client credentials to access them. You get the client credentials from the service key of the business rules service instance.

Step 1 Log on to SAP API Business Hub
โ€”

  1. Log on to SAP API Business Hub

    API Hub Homepage
    API Hub Homepage

  2. In the search bar, search for Business rules. From the search results, select the API package for SAP Business Rules Service.

    Search bar
    Search bar

  3. Choose the Rule Execution API for Cloud Foundry tile of Version v2.

    Rule Execution API tile
    Rule Execution API tile

  4. Choose Try out to execute the APIs.

    Try out
    Try out

Step 2 Determine the service key parameters to configure environment
+
Step 3 Configure the environment
+
Step 4 Invoke the rule services and observe the results in the API response
+

Resources

Discussion

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

Submit detailed feedback Discuss in Community
Steps
Step 1 of 4
1. Log on to SAP API Business Hub 2. Determine the service key parameters to configure environment 3. Configure the environment 4. Invoke the rule services and observe the results in the API response

Learn more →