2024 Jul 25 8:52 AM - edited 2024 Jul 25 10:45 AM
Hi Community,
How to deploy cap application with Fiori UI and also using destination
I am trying to call S4 Hana API in mta.yaml
_schema-version: 3.3.0
ID: StonemanPortal
description: A simple CAP project.
version: 9.0.0
modules:
- name: StonemanPortal-srv
type: nodejs
path: gen/srv
requires:
- name: StonemanPortal-db
- name: StonemanPortal-auth
provides:
- name: srv-api
properties:
srv-url: ${default-url}
parameters:
buildpack: nodejs_buildpack
readiness-health-check-http-endpoint: /health
readiness-health-check-type: http
build-parameters:
builder: npm
- name: StonemanPortal
type: approuter.nodejs
path: app/router
requires:
- name: srv-api
group: destinations
properties:
forwardAuthToken: true
name: srv-api
url: ~{srv-url}
- name: StonemanPortal-auth
- name: S4HANA_QA
group: destinations
properties:
forwardAuthToken: false
name: ui5
url: https://ui5.sap.com
parameters:
disk-quota: 256M
keep-existing-routes: true
memory: 256M
- name: StonemanPortal-app-content
type: com.sap.application.content
path: .
requires:
- name: StonemanPortal_html_repo_host
parameters:
content-target: true
build-parameters:
build-result: resources
requires:
- artifacts:
- stoneman.zip
name: stoneman
target-path: resources/
- name: stoneman
type: html5
path: app/stoneman
build-parameters:
build-result: dist
builder: custom
commands:
- npm install
- npm run build:cf
supported-platforms: []
resources:
- name: StonemanPortal-auth
type: org.cloudfoundry.managed-service
parameters:
config:
tenant-mode: dedicated
xsappname: StonemanPortal-${org}-${space}
path: ./xs-security.json
service: xsuaa
service-plan: application
- name: StonemanPortal-db
type: com.sap.xs.hdi-container
parameters:
service: hana
service-plan: hdi-shared
- name: StonemanPortal_html_repo_host
type: org.cloudfoundry.managed-service
parameters:
service: html5-apps-repo
service-plan: app-host
- name: S4HANA_QA
type: org.cloudfoundry.managed-service
parameters:
config:
HTML5Runtime_enabled: false
init_data:
instance:
destinations:
- Authentication: BasicAuthentication
User: SAPBTP
Password: xPFgdyoHtfyxomKqnKx#vZSeRL6LGWEgAzcJRGPN
Name: S4HANA_QA
ProxyType: Internet
Type: HTTP
URL: https://my409722-api.s4hana.cloud.sap
existing_destinations_policy: update
version: 1.0.0
service: destination
service-name: stoneman
service-plan: lite
parameters:
deploy_mode: html5-repo
enable-parallel-deployments: true
build-parameters:
before-all:
- builder: custom
commands:
- npm ci
- npx cds build --production
Thank's
Durgesh1685
User | Count |
---|---|
62 | |
12 | |
7 | |
7 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.