on 2021 Dec 05 9:45 AM
Hi Team,
I am trying consume API from Success Factor in UI application but whenever I run UI5 Application in browser, application is not displaying data .
I have followed below link to consume API from API business hub but in the this document step:10 :.env file is not generating in BAS when we click on Configure Environment option.
I checked network tab and was getting below error
"Failed to resolve API Key variable request.header.apikey"
Can please tell me where to pass API key in the application and attach developer tutorial link for consuming API from API business hub in the BAS.
Regards
Prakash
Request clarification before answering.
1. are you able to test the service in api hub site? maybe you do not have a personal apikey
2. please share the api sandbox destination from the cockpit
3. please share the service editor that you open in service center
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
1. I am able to test API in API business Hub-
2.Created two destinations for API business Hub
apihub_sandbox
Description=SAP API Business Hub – Sandbox end point
Type=HTTP
HTML5.DynamicDestination=true
Authentication=NoAuthentication
WebIDEUsage=apihub_sandbox
Name=apihub_sandbox
WebIDEEnabled=true
ProxyType=Internet
URL=https\://sandbox.api.sap.com
SAP_API_Business_Hub
Description=SAP API Business Hub
Type=HTTP
HTML5.DynamicDestination=true
Authentication=NoAuthentication
WebIDEUsage=apihub_catalog
Name=SAP_API_Business_Hub
WebIDEEnabled=true
ProxyType=Internet
URL=https\://api.sap.com
3.Service Centre -> where I create UI5 project
Hi Zdravko,
Please find the below "ui5.yaml" file of my project.
specVersion: "2.5"
metadata:
name: users.usersdemo
type: application
server:
customMiddleware:
- name: fiori-tools-proxy
afterMiddleware: compression
configuration:
ignoreCertError: false # If set to true, certificate errors will be ignored. E.g. self-signed certificates will be accepted
backend:
- apiHub: true
path: /successfactors
url: https://sandbox.api.sap.com
ui5:
path:
- /resources
- /test-resources
url: https://ui5.sap.com
version: '' # The UI5 version, for instance, 1.78.1. Empty string means latest version
- name: fiori-tools-appreload
afterMiddleware: compression
configuration:
port: 35729
path: webapp
delay: 300
- name: fiori-tools-preview
afterMiddleware: fiori-tools-appreload
configuration:
component: users.usersdemo
User | Count |
---|---|
41 | |
15 | |
10 | |
9 | |
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.