kaldesai commented on code in PR #541:
URL: 
https://github.com/apache/incubator-kie-kogito-docs/pull/541#discussion_r1496887822


##########
serverlessworkflow/modules/ROOT/pages/core/custom-functions-support.adoc:
##########
@@ -531,7 +531,91 @@ kogito.sw.functions.greet.timeout=5000 <1>
 ----
 <1> Time in milliseconds
 
-== Custom function types
+== Rest Custom Function 
+
+Serverless Workflow Specification defines the 
xref:service-orchestration/orchestration-of-openapi-based-services.adoc[OpenAPI 
function type], which is the preferred way to interact with existing REST 
servers. 
+However, sometimes a workflow shoud interact with several REST APIs which are 
not described using an OpenAPI specification file. Since generating such file 
for these services might be a tedious exercise, {product_name} offers REST 
custom type as a shorcut. 
+
+When using custom rest, in the function definition you specify the HTTP URI to 
be invoked and the HTTP method (get, post, patch or put) to be used, using 
`operation` string. When the function is actually invoked you pass the request 
arguments as you do when using an OpenAPI function. 

Review Comment:
   ```suggestion
   When using custom rest, in the function definition, you specify the HTTP URI 
to be invoked and the HTTP method (get, post, patch, or put) to be used, using 
the `operation` string. When the function is invoked, you pass the request 
arguments as you do when using an OpenAPI function. 
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to