forked from SAP-samples/cloud-cap-samples-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapplication.yaml
More file actions
97 lines (92 loc) · 2.03 KB
/
application.yaml
File metadata and controls
97 lines (92 loc) · 2.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
---
logging:
level:
'[com.sap.cds.auditlog]': DEBUG
spring:
web.resources.static-locations: "file:./app"
jmx:
enabled: true
cds:
odata-v4.endpoint.path: "/api"
security.mock.users:
- name: admin
password: admin
roles:
- admin
attributes:
businessPartner:
- "10401010"
- name: user
password: user
server.servlet.encoding:
charset: UTF-8
force: true
management:
endpoint:
health:
show-components: always
show-details: always
endpoints:
web:
exposure:
include: "health"
health:
defaults.enabled: false
ping.enabled: true
db.enabled: true
myhealth.enabled: true
---
spring:
config.activate.on-profile: cloud
sql.init.schema-locations: "classpath:schema-nomocks.sql"
cds:
messaging.services:
bupa-messaging:
kind: enterprise-messaging
format: cloudevents
subscribe-prefix: sap/S4HANAOD/java/ce/
---
spring:
config.activate.on-profile: sandbox
cds:
remote.services:
'[API_BUSINESS_PARTNER]':
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]':
destination:
type: "odata-v2"
name: "s4-destination"
suffix: "/sap/opu/odata/sap"
---
spring:
config.activate.on-profile: mocked
cds:
messaging.services:
bupa-messaging:
kind: file-based-messaging
application.services:
api-business-partner-mocked:
model: API_BUSINESS_PARTNER
serve:
path: API_BUSINESS_PARTNER
remote.services:
'[API_BUSINESS_PARTNER]':
destination:
name: "myself"
suffix: "/api"
---
spring:
config.activate.on-profile: default
cds:
data-source:
auto-config.enabled: false