@@ -28,17 +28,17 @@ modules:
2828 - name : bookshop-mt-service-manager
2929 - name : bookshop-mt-uaa
3030 - name : bookshop-mt-saas-registry
31- - name : sidecar
31+ - name : mtx-api
3232 properties :
33- CDS_MULTITENANCY_SIDECAR_URL : ~{url}
34- - name : app
33+ CDS_MULTITENANCY_SIDECAR_URL : ~{mtx- url}
34+ - name : app-api
3535 properties :
36- CDS_MULTITENANCY_APPUI_URL : ~{url}
36+ CDS_MULTITENANCY_APPUI_URL : ~{app- url}
3737 - name : cf-logging
3838 provides :
39- - name : srv
39+ - name : srv-api
4040 properties :
41- url : ' ${default-url}'
41+ srv- url : ' ${default-url}'
4242# --------------------- SIDECAR MODULE -----------------------
4343 - name : bookshop-mt-sidecar
4444# ------------------------------------------------------------
@@ -59,40 +59,41 @@ modules:
5959 - name : bookshop-mt-uaa
6060 - name : cf-logging
6161 provides :
62- - name : sidecar
62+ - name : mtx-api
6363 properties :
64- url : ${default-url}
64+ mtx- url : ${default-url}
6565# --------------------- APPROUTER MODULE ---------------------
6666 - name : bookshop-mt-app
6767# ------------------------------------------------------------
68- type : nodejs
68+ type : approuter. nodejs
6969 path : app
7070 parameters :
7171 memory : 256M
7272 disk-quota : 512M
73+ keep-existing-routes : true
7374 properties :
7475 TENANT_HOST_PATTERN : ^(.*)-${default-uri}
7576 requires :
76- - name : srv
77+ - name : srv-api
7778 group : destinations
7879 properties :
7980 name : backend
80- url : ~{url}
81+ url : ~{srv- url}
8182 forwardAuthToken : true
8283 strictSSL : true
8384 - name : bookshop-mt-uaa
8485 provides :
85- - name : app
86+ - name : app-api
8687 properties :
87- url : ' ${default-url}'
88+ app- url : ' ${default-url}'
8889# --------------------- RESOURCES ---------------------
8990resources :
9091# -----------------------------------------------------
9192 - name : bookshop-mt-uaa
92- type : com.sap.xs.uaa
93+ type : org.cloudfoundry.managed-service
9394 parameters :
9495 service : xsuaa
95- service-plan : broker
96+ service-plan : application
9697 path : ./xs-security-mt.json
9798 config : # override xsappname as it needs to be unique
9899 xsappname : bookshop-mt-${org}-${space}
@@ -107,17 +108,20 @@ resources:
107108 service : saas-registry
108109 service-plan : application
109110 config :
110- appName : bookshop-mt-${org}-${space} # this is the text on the tile
111- xsappname : bookshop-mt-${org}-${space} # this is the value from xsuaa.parameters.config.xsappname
112- appUrls :
113- getDependencies : ~{srv/url}/mt/v1.0/subscriptions/dependencies
114- onSubscription : ~{srv/url}/mt/v1.0/subscriptions/tenants/{tenantId}
115- onSubscriptionAsync : true
116- onUnSubscriptionAsync : true
117- onUpdateDependenciesAsync : true
118- callbackTimeoutMillis : 3600000
111+ appName : bookshop-mt-${org}-${space} # this is the text on the tile
112+ xsappname : bookshop-mt-${org}-${space} # this is the value from xsuaa.parameters.config.xsappname
113+ appUrls :
114+ getDependencies : ~{srv-api/srv-url}/mt/v1.0/subscriptions/dependencies
115+ onSubscription : ~{srv-api/srv-url}/mt/v1.0/subscriptions/tenants/{tenantId}
116+ onSubscriptionAsync : true
117+ onUnSubscriptionAsync : true
118+ onUpdateDependenciesAsync : true
119+ callbackTimeoutMillis : 3600000
120+ displayName : bookshop-java
121+ description : A simple CAP Java project.
122+ category : ' Category'
119123 requires :
120- - name : srv
124+ - name : srv-api
121125 - name : cf-logging
122126 type : org.cloudfoundry.managed-service
123127 parameters :
0 commit comments