forked from docs/doc-exports
Reviewed-by: Eotvos, Oliver <oliver.eotvos@t-systems.com> Co-authored-by: Chen, Junjie <chenjunjie@huawei.com> Co-committed-by: Chen, Junjie <chenjunjie@huawei.com>
19 lines
2.1 KiB
HTML
19 lines
2.1 KiB
HTML
<a name="functiongraph_03_0860"></a><a name="functiongraph_03_0860"></a>
|
|
|
|
<h1 class="topictitle1">How Does a Function Obtain the Request Path or Parameters When Using an APIG Trigger?</h1>
|
|
<div id="body0000001343593489"><p id="functiongraph_03_0860__p1625713404614">By default, the request path or parameters are included in <strong id="functiongraph_03_0860__b1778925416173">event</strong>. A function invokes APIG using its event template. You can obtain the request path or parameters from the function execution result.</p>
|
|
<p id="functiongraph_03_0860__p490065692">Example:</p>
|
|
<p id="functiongraph_03_0860__p49716444818"><span><img id="functiongraph_03_0860__image41551511299" src="en-us_image_0000001351427305.png"></span></p>
|
|
<ul id="functiongraph_03_0860__ul1462145131916"><li id="functiongraph_03_0860__li186214531914"><strong id="functiongraph_03_0860__b1225519462217">queryStringParameters</strong>: parameters following the question mark (?), separated with ampersands (&). These parameters are added in the URL of a GET request, and will be transferred in the URL string format when a GET request is initiated.</li><li id="functiongraph_03_0860__li3942124761914"><strong id="functiongraph_03_0860__b47213342711">path</strong>: API URL.</li></ul>
|
|
<p id="functiongraph_03_0860__p49171633181619">You can call an API using its request path. Example: <strong id="functiongraph_03_0860__b11595123313282">https://464d86ec641d45a683c5919ac57f3823.apig.projectID.com/apig-demo/subpath</strong></p>
|
|
<p id="functiongraph_03_0860__p175856471617">Alternatively, you can call an API by adding request parameters. Example:</p>
|
|
<p id="functiongraph_03_0860__p11591182418162">https://464d86ec641d45a683c5919ac57f3823.apig.projectID.com/apig-demo<strong id="functiongraph_03_0860__b8961182917432">/subpath?a=1&b=2</strong></p>
|
|
<p id="functiongraph_03_0860__p195751956111320"><span><img id="functiongraph_03_0860__image157416569136" src="en-us_image_0000001351347601.png"></span></p>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="functiongraph_03_0100.html">Trigger Management FAQs</a></div>
|
|
</div>
|
|
</div>
|
|
|