SAP-samples/cap-service-integration-codejam
A CodeJam on integrating and consuming external services from a CAP project over twelve exercises, from importing and mocking an OData service to the SAP Cloud SDK covering connectivity and destinations.
Twelve exercises take a CAP Node.js project through importing an OData service definition, mocking an external service (first in-process, then as a separate process with test data), adding CDS definitions to integrate it, and introducing the SAP Cloud SDK for connectivity and destinations. Later exercises switch the mock for a real remote system, associate local and remote entities, and extend the resulting SAP Fiori elements UI with annotations. The exercise content is based on an earlier SAP TechEd two-hour workshop.
Facts
Where it sits
Who is behind it
In the atlas: maintains 222@SAP-samplesmaintainerAjinkya PatilContributes to this
In the atlas: contributes to 112@ajinkyapatil8190Marc BeckerContributes to this
In the atlas: contributes to 7@beckermarcBrian BernardContributes to this
In the atlas: contributes to 64@btbernardDaniel SchlachterContributes to this
In the atlas: contributes to 10, wrote 9@DanSchlachterDr. David A. KunzContributes to this
In the atlas: contributes to 16@David-KunzBastian DennstedtContributes to this
In the atlas: contributes to 3@DennstedtBDJ AdamsContributes to this
Developer Advocate
In the atlas: contributes to 20, wrote 22@qmacroHeiko WitteborgContributes to this
In the atlas: contributes to 18@hm23Thomas JungContributes to this
Developer Advocate
In the atlas: contributes to 15, wrote 6@jung-thomas9 contributors
What it declares
Every artifact
- Type
- Sample
- Origin
- By SAP
As a sample
- Form
- Workshop or CodeJam material
Connections
Reaching remote systems without addresses or credentials in the code
Download
README
quoted from SAP-samples/cap-service-integration-codejam under Apache-2.0, readService integration with SAP Cloud Application Programming Model
Description
This repository contains the material for the "Service Consumption with the SAP Cloud Application Programming Model" CodeJam, brought to you by the Developer Advocates at SAP.
Overview
This CodeJam introduces attendees to service integration with the SAP Cloud Application Programming Model (CAP). Specifically, the Node.js flavor of CAP is used.
During this event, you'll become acquainted with how external services can be integrated and consumed from within a CAP project. In working through the exercises you'll also become comfortable with various facilities that CDS offers for declaring, relating and exposing entities, and familiar with how the SAP Cloud SDK covers connectivity and destinations, supporting such integration scenarios with CAP.
Session prerequisites
In order to get the most from this CodeJam, and to be able to work through the exercises, there are certain prerequisites that you must have sorted out before the day of the CodeJam.
The prerequisites are detailed in a separate prerequisites file. Please ensure you have everything ready before attending the CodeJam.
Exercises
These are the exercises, each in their own directory, sometimes with supporting files and scripts. We will work through the exercises in the order shown here. From a session flow perspective, we are taking the "coordinated" approach:
The instructor will set you off on the first exercise, and that's the only one you should do; if you finish before others, there are some questions at the end of the exercise for you to ponder. Do not proceed to the next exercise until the instructor tells you to do so.
The exercises are written in a conversational way; this is so that they have enough context and information to be completed outside the hands-on session itself. To help you navigate and find what you have to actually do next, there are pointers like this 👉 throughout that indicate the things you have to actually do (as opposed to just read for background information).
- Set up your workspace
- Explore the basic service
- Import an OData service definition
- Understand service mocking
- Add test data for the mocked external service
- Mock external service in a separate process
- Add CDS definitions to integrate services
- Introduce SAP Cloud SDK
- Set up the real remote system configuration
- Run the service with real remote delegation
- Associate local and remote entities
- Extend the SAP Fiori elements UI with annotations
Feedback
If you can spare a couple of minutes at the end of the session, please help us improve for next time by providing some feedback.
Simply use this Give Feedback link to create a special "feedback" issue, and follow the instructions in there.
Thank you!
Acknowledgements
The exercise content in this repository is based on previous work for an SAP TechEd 2 hour workshop, written by Christian Georgi of the CAP team.
How to obtain support
Support for the content in this repository is available during the actual time of the CodeJam event for which this content has been designed.
License
Copyright (c) 2023-2026 SAP SE or an SAP affiliate company. All rights reserved. This project is licensed under the Apache Software License, version 2.0 except as noted otherwise in the LICENSE file.
Details
Sources
Sources are graph entities: the same page may back several entries, and an unreachable source flags every row that rests on it.
Compatibility and provenance
Flavors
“the Node.js flavor of CAP” — SAP-samples/cap-service-integration-codejam — README
Contributors
History in the atlas
- First seen.
For your agent
- Ref
artifact:sap-samples-cap-service-integration-codejam- JSON
- /artifacts/sap-samples-cap-service-integration-codejam.json
- MCP
- Connecting an agent