Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid deprecated properties in cds.remote.services #307

Merged
merged 3 commits into from
Apr 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 9 additions & 6 deletions srv/src/main/resources/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,23 +61,25 @@ spring:
cds:
remote.services:
'[API_BUSINESS_PARTNER]':
type: "odata-v2"
http:
headers:
APIKey: "" # Place API Key from SAP API Business Hub here or use environment variable CDS_REMOTE_SERVICES_API_BUSINESS_PARTNER_HTTP_HEADERS_APIKEY
destination:
type: "odata-v2"
properties:
url: "https://sandbox.api.sap.com/s4hanacloud/sap/opu/odata/sap"
headers:
APIKey: "" # Place API Key from SAP API Business Hub here or use environment variable CDS_REMOTE_SERVICES_API_BUSINESS_PARTNER_DESTINATION_HEADERS_APIKEY

---
spring:
config.activate.on-profile: destination
cds:
remote.services:
'[API_BUSINESS_PARTNER]':
type: "odata-v2"
http:
suffix: "/sap/opu/odata/sap"
destination:
type: "odata-v2"
name: "s4-destination"
suffix: "/sap/opu/odata/sap"

---
spring:
Expand All @@ -93,9 +95,10 @@ cds:
path: API_BUSINESS_PARTNER
remote.services:
'[API_BUSINESS_PARTNER]':
http:
suffix: "/api"
destination:
name: "myself"
suffix: "/api"

---
spring:
Expand Down