How do I send get params when invoking a function that uses the GET method? #19816
Replies: 2 comments 5 replies
-
Both DELETE and GET allow a body BUT it is not defined to require it. So it is up to the destination if it will handle it or not. |
Beta Was this translation helpful? Give feedback.
-
i have found a solution for this, just pass the query params on the function name, like this await client.functions.invoke(`${FUNCTION_NAME}?id=${id}`, {
method: "DELETE"
}); |
Beta Was this translation helpful? Give feedback.
-
I see in the docs there's an example of delete sending details in the body.
but this seems weird to me because DELETE doesn't have a request body, no? So does that mean that the "body" property is also used as the params object in the case of a GET / DELETE request?
Beta Was this translation helpful? Give feedback.
All reactions