当前位置:网站首页>How to create the simplest SAP kyma function
How to create the simplest SAP kyma function
2022-06-11 21:22:00 【Hua Weiyun】
Sign in SAP Kyma Console , Create a new function:

Choice of implementation mode nodejs:
Automatically generate a service. Click on service In the lower right corner of the panel Expose service Button , Create a new API rule, take function Exposed to the internet:

Choose function, Click on expose function, establish API rules:

maintain api rule Of name and hostname Field :

function There is only one line in the implementation body : return Hello World

Click on API rule, You can access the function 了 :


The website links :https://sapui5.hana.ondemand.com/1.36.6/docs/guide/e5200ee755f344c8aef8efcbab3308fb.html
An example :
"routing": { "config": { "routerClass": "sap.m.routing.Router", "viewType": "XML", "viewPath": "kyma.sample.app.view", "controlId": "app", "controlAggregation": "pages", "async": true }, "routes": [ { "pattern": "", "name": "orders", "target": ["orders"] } ], "targets": { "orders": { "viewName": "Orders", "viewId": "orders", "viewLevel": 1, "title": "{i18n>title}" } }
stay manifest.json Of documents sap.ui5 Area , Added three sub areas :
(1) config
(2) routes
(3) target
config
This section contains the global router configuration and default values that apply for all routes and targets.
Contains global router information and default values for all routing paths and targets .
We define the router class that we want to use and where our views are located in the app.
The router implementation class and the specific location of our view in the application are defined .
To load and display views automatically, we also specify which control is used to display the pages and what aggregation should be filled when a new page is displayed.
To make the view visible , You need to define which control is used to display the page , And through what aggregation, Fill in the control .


routes
Each route defines a name, a pattern, and one or more targets to navigate to when the route has been hit.
Each route information defines a name , A format , And a routing destination view , When the route is triggered , The destination view will show .
The pattern is basically the URL part that matches to the route, we define two routes for our app.
So-called pattern, That is, to be matched URL fragment .
Example :

边栏推荐
- [Part 14] source code analysis and application details of completionservice class [key]
- Application business layer modification
- LabVIEW controls Arduino to realize ultrasonic ranging (advanced chapter-5)
- 一个Golang的私有库设置问题
- Part I physical layer
- Serval and Rooted Tree(CF1153D)-DP
- Tensorflow 2. X Getting Started tutorial
- Object creation process of JVM
- The gateway starts other microservices first. When the gateway is started, the gateway cannot be started and there is no exception log; Start the gateway first, and all services can be started normall
- The official announced the launch of Alibaba's 2023 global school recruitment: Technical Posts account for more than 60%
猜你喜欢

Use float to create a page header, footer, left content, and main content.

apache 本地多端口配置

ORA-04098: trigger ‘xxx.xxx‘ is invalid and failed re-validation
![[Part 15] use and basic principle of forkjoinpool [key]](/img/36/e21b16ec92d444149bc793f340f9f3.jpg)
[Part 15] use and basic principle of forkjoinpool [key]

JVM对象分配策略TLAB

JVM方法区

Codeforces Round #744 (Div. 3) 解题报告

Test plans and test cases

【 C Advanced language】 Integer Storage in Memory

LabVIEW控制Arduino实现超声波测距(进阶篇—5)
随机推荐
Tensorflow 2. X Getting Started tutorial
ORA-04098: trigger ‘xxx.xxx‘ is invalid and failed re-validation
JMeter load test finds the maximum number of concurrent users (including step analysis)
SQL的语法
Leetcode 797. All possible paths
BZOJ3189 : [Coci2011] Slika
BUG -- coredump使用
【博弈论-绪论】
Lr-link Lianrui makes its debut at the digital Expo with new products - helping the construction of new infrastructure data center
AC自动机
Bug -- coredump usage
ORA-04098: trigger ‘xxx. xxx‘ is invalid and failed re-validation
JVM method area
UML系列文章(29)体系结构建模---模式和框架
Deriving Kalman filter from probability theory
Work assessment of spectral analysis of Jilin University in March of the 22nd spring -00079
Why should I use iwarp, roce V2, nvme of and other protocols for 100g network transmission
【博弈论-完全信息静态博弈】 战略式博弈
The e-sports Internet cafe uses a 2.5G network card to experience the feeling of flying!
Frequency domain filter