calling a function by the endpoint in this format:
{{baseUrl}}/functions/{{functionId}}/executions
bring a lists with all the executions.
Theres any way to get only the current execution instead?
something like {{baseUrl}}/functions/{{functionId}}/executions/last
Summary
Title: Function Execution Endpoint Params
Developers resolved the issue with function execution endpoint params.
To execute a function without receiving all executions, use a POST request instead of a GET request.
For only the current execution, use the endpoint format: {{baseUrl}}/functions/{{functionId}}/executions/last.
darShan
May 16, 2024, 14:03
GET would list the executions, do a POST request instead to execute a function.
sevla
Rank 1: Thread
May 16, 2024, 14:06
I see, but if the function can accept both GET and POST request, how can test the function call without receiving all the executions.
darShan
May 16, 2024, 14:08
you can send the param content as well, set method to whatever you need for the function.