函数工作流 FUNCTIONGRAPH-使用容器镜像创建并执行HTTP函数:步骤五:测试函数
时间:2025-03-18 11:15:43
步骤五:测试函数
- 在函数详情页,单击“测试”,在弹窗中创建新的测试事件。
- 选择“apig-event-template”,事件名称输入“helloworld”,测试事件修改为如下所示,完成后单击“创建”。
{ "body": "{\"message\": \"helloworld\"}", "requestContext": { "requestId": "11cdcdcf33949dc6d722640a13091c77", "stage": "RELEASE" }, "queryStringParameters": { "responseType": "html" }, "httpMethod": "POST", "pathParameters": {}, "headers": { "Content-Type": "application/json" }, "path": "/helloworld", "isBase64Encoded": false }
support.huaweicloud.com/qs-functiongraph/functiongraph_04_0103.html