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

Create Action Project for simple CAP Service in SAP Build Actions

Create an action project using the OpenAPI specification of a simple CAP Service

Overview

🎓 intermediate 20 min. SAP Build Process AutomationIntermediateSAP Business Technology PlatformSAP Cloud Application Programming Model

You will learn

  • to modify the generated OpenAPI specification of a CAP Service
  • to create an action project based on the API specification
  • to test API using a BTP destination
  • to release and publish the action project to be consumed in a process of SAP Build Process Automation
Thomas Jentsch T Thomas Jentsch March 4, 2024
Created by March 13, 2023
Contributors

Prerequisites

Steps

Step 1 Generate the OpenAPI specification

You will generate the openAPI specification for the service used to create the Action project in SAP Build.

  1. Navigate back to the Business Application Studio. Open your CAP project and run the following command in the Terminal window:

    Shell
    cds compile srv --service all -o docs --to openapi
  2. In the subfolder docs folder, open the file sap_build_cap_sample_library.openapi3.json.

    api spec
    api spec

Step 2 Adjust the OpenAPI specification
+
Step 3 Create action project
+
Step 4 Test actions
+
Step 5 Release and Publish to the Library
+

Resources

Discussion

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

Submit detailed feedback Discuss in Community
Steps
Step 1 of 5
1. Generate the OpenAPI specification 2. Adjust the OpenAPI specification 3. Create action project 4. Test actions 5. Release and Publish to the Library

Learn more →