Skip to content

Commit

Permalink
KOGITO-8410 Added documentation about GET requests to Knative Custom …
Browse files Browse the repository at this point in the history
…Functions (#451)

* KOGITO-8410 Added documentation about GET requests to Knative Custom Functions.

Signed-off-by: Helber Belmiro <[email protected]>

* KOGITO-8410 Added note about arguments being sent over query string.

Signed-off-by: Helber Belmiro <[email protected]>

* Update serverlessworkflow/modules/ROOT/pages/core/custom-functions-support.adoc

Co-authored-by: Kalyani Desai <[email protected]>

---------

Signed-off-by: Helber Belmiro <[email protected]>
Co-authored-by: Kalyani Desai <[email protected]>
  • Loading branch information
hbelmiro and kaldesai authored Aug 16, 2023
1 parent eda83a7 commit aa227b2
Showing 1 changed file with 15 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -342,9 +342,23 @@ The above function will send a `POST` request to the http://custom-function-knat

[NOTE]
====
`GET` requests are not yet supported.
You can also send `GET` requests by setting `method=GET` in `operation`. In this case, the arguments are forwarded over a query string.
====

.Example of a `GET` request
[source,json]
----
"functions": [
{
"name": "greet",
"type": "custom",
"operation": "knative:services.v1.serving.knative.dev/custom-function-knative-service?path=/plainJsonFunction&method=GET", <1>
}
]
----

<1> `GET` request

[[about-namespaces]]
==== About namespaces

Expand Down

0 comments on commit aa227b2

Please sign in to comment.