当前位置:网站首页>如何创建最简单的 SAP Kyma Function
如何创建最简单的 SAP Kyma Function
2022-06-11 21:20:00 【华为云】
登录 SAP Kyma 控制台,创建一个新的 function:

实现方式选择 nodejs:
自动生成一个同名的 service. 点击 service 面板右下角的 Expose service 按钮,创建一个新的 API rule,将 function 暴露给 internet:

选中 function,点击 expose function,创建 API rules:

维护 api rule 的 name 和 hostname 字段:

function 实现体里就一行语句:返回 Hello World

点击 API rule,就能访问该 function 了:


官网链接:https://sapui5.hana.ondemand.com/1.36.6/docs/guide/e5200ee755f344c8aef8efcbab3308fb.html
一个例子:
"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}" } }
在 manifest.json 文件的 sap.ui5 区域,添加了三个子区域:
(1) config
(2) routes
(3) target
config
This section contains the global router configuration and default values that apply for all routes and targets.
包含了全局路由器信息和适应于所有路由路径和目标的默认值。
We define the router class that we want to use and where our views are located in the app.
定义了路由器实现类以及我们的视图在应用中的具体位置。
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.
为了让视图能够显示出来,需要定义哪个控件用于显示页面,以及页面通过何种 aggregation,填充到该控件去。


routes
Each route defines a name, a pattern, and one or more targets to navigate to when the route has been hit.
每条路由信息定义了一个名称,一个格式,以及一个路由目的视图,当该路由触发时,目的视图会显示。
The pattern is basically the URL part that matches to the route, we define two routes for our app.
所谓 pattern,即待匹配的 URL 片段。
例子:

边栏推荐
- Pyqt5 technical part - cause of the problem that setting the top of the window does not take effect. Setwindowflags() does not take effect after setting the parameters. Solution
- RANSAC extract cylinder (matlab built-in function)
- 2021牛客多校5 Double Strings
- JS monitor scrolling touch bottom load more_ Browser scrolls to the bottom to load more
- Educational Codeforces Round 114 (Rated for Div. 2) D
- Flutter implements the JD address selection component
- Online excel file parsing and conversion to JSON format
- 12 golden rules of growth
- Use float to create a page header, footer, left content, and main content.
- 【生活思考】文字与语音
猜你喜欢

One article to show you how to understand the harmonyos application on the shelves
![[data visualization] Apache superset 1.2.0 tutorial (II) - Quick Start (visualizing King hero data)](/img/21/c2212a674fdf77571305446217a5ca.png)
[data visualization] Apache superset 1.2.0 tutorial (II) - Quick Start (visualizing King hero data)

从概率论基础出发推导卡尔曼滤波

Goland中在文件模板中为go文件添加个人声明

【C語言進階】整型在內存中的存儲

JMeter load test finds the maximum number of concurrent users (including step analysis)

My collection of scientific research websites

Which Bluetooth headset is better within 500? Inventory of gifts for girls' Day
![[Part 14] source code analysis and application details of completionservice class [key]](/img/41/9f5383d6eafb32723e29c15da3a1af.jpg)
[Part 14] source code analysis and application details of completionservice class [key]

Explanation of each column output by explain statement
随机推荐
What are striplines and microstrip lines? Reference planes and transmission lines
新品发布:LR-LINK联瑞推出首款25G OCP 3.0 网卡
bzoj3188 Upit
Object creation process of JVM
JVM heap
[nk] deleted number of 100 C Xiaohong in Niuke practice match
A problem of setting the private library of golang
第二部分 数据链路层
UML系列文章(29)体系结构建模---模式和框架
Work assessment of spectral analysis of Jilin University in March of the 22nd spring -00079
JUnit tests multithreaded code, and the sub thread does not run
Iros 2021 | new idea of laser vision fusion? Lidar intensity diagram +vpr
【C语言进阶】整型在内存中的存储
Solution to the problem of PHP strtotime obtaining natural monthly error
BZOJ3189 : [Coci2011] Slika
How to Load Data from CSV (Data Preparation Part)
Redis fourth session - redis high performance principle (multiplexing) and high availability analysis (backup, master-slave)
Solve the problem of img 5px spacing
Network security Kali penetration learning introduction to web penetration using MSF penetration to attack win7 host and execute commands remotely
Pyqt5 technical part - cause of the problem that setting the top of the window does not take effect. Setwindowflags() does not take effect after setting the parameters. Solution