Skip to content

Commit bc16d03

Browse files
committed
SRVLOGIC-478: Misleading references to src/main/resources in configuring openAPI services endpoints
Fix all replacements to project_application_dir SRVLOGIC-478: Fix example of OpenAPI function definition
1 parent 9e303d6 commit bc16d03

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

modules/serverless-logic-openAPI-function-definition.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"functions": [
1515
{
1616
"name": "myFunction1",
17-
"operation": "classpath:/myopenapi-file.yaml#myFunction1"
17+
"operation": "specs/myopenapi-file.yaml#myFunction1"
1818
}
1919
]
2020
}

modules/serverless-logic-sending-rest-requests-openAPI-specification.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ To send REST requests that are based on the OpenAPI specification files, you mus
2222

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

25-
.. Copy the OpenAPI specification files into your workflow service directory, such as `src/main/resources/specs`.
25+
.. Copy the OpenAPI specification files into your workflow service directory, such as `<project_application_dir>/specs`.
2626
+
2727
The following example shows the OpenAPI specification for the multiplication REST service:
2828
+
@@ -91,7 +91,7 @@ components:
9191
}
9292
----
9393

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

9696
. To access the defined functions in the workflow states:
9797

serverless-logic/serverless-logic-managing-services/serverless-logic-configuring-openAPI-services-endpoints.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ The `kogito.sw.operationIdStrategy` property supports the following values: `FIL
1818
quarkus.rest-client.stock_portfolio_svc_yaml.url=http://localhost:8282/ # <1>
1919
----
2020
+
21-
<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`
21+
<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`
2222

2323
`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.
2424
+

0 commit comments

Comments
 (0)