Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion modules/serverless-logic-openAPI-function-definition.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"functions": [
{
"name": "myFunction1",
"operation": "classpath:/myopenapi-file.yaml#myFunction1"
"operation": "specs/myopenapi-file.yaml#myFunction1"
}
]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ To send REST requests that are based on the OpenAPI specification files, you mus

.. Identify and access the OpenAPI specification files for the services you intend to invoke.

.. Copy the OpenAPI specification files into your workflow service directory, such as `src/main/resources/specs`.
.. Copy the OpenAPI specification files into your workflow service directory, such as `<project_application_dir>/specs`.
+
The following example shows the OpenAPI specification for the multiplication REST service:
+
Expand Down Expand Up @@ -91,7 +91,7 @@ components:
}
----

.. Ensure that your function definitions reference the correct paths to the OpenAPI files stored in the `src/main/resources/specs` directory.
.. Ensure that your function definitions reference the correct paths to the OpenAPI files stored in the `<project_application_dir>/specs` directory.

. To access the defined functions in the workflow states:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ The `kogito.sw.operationIdStrategy` property supports the following values: `FIL
quarkus.rest-client.stock_portfolio_svc_yaml.url=http://localhost:8282/ # <1>
----
+
<1> The OpenAPI File Path is `src/main/resources/openapi/stock-portfolio-svc.yaml`. The generated key that configures the URL for the REST client is `stock_portfolio_svc_yaml`
<1> The OpenAPI File Path is `<project_application_dir>/specs/stock-portfolio-svc.yaml`. The generated key that configures the URL for the REST client is `stock_portfolio_svc_yaml`

`FULL_URI`:: {ServerlessLogicProductName} uses the complete URI path of the OpenAPI document as the configuration key. The full URI is sanitized to form the key.
+
Expand Down