Uploaded image for project: 'Kogito'
  1. Kogito
  2. KOGITO-7046

Use Quarkus Extension OpenAPI client gen IV: Generate code in Kogito to call Open API extension generated code

XMLWordPrintable

    • False
    • None
    • False
    • Release Notes
    • Hide
      OpenAPI invocations are now done, if codegen maven step is enabled, through https://github.com/quarkiverse/quarkus-openapi-generator

      This is a breaking compatibility change, you need to

      1) Ensure maven codegen build step is enabled

      Your pom has this execution plugin

      <plugin>
              <groupId>${quarkus.platform.group-id}</groupId>
              <artifactId>quarkus-maven-plugin</artifactId>
              <version>${quarkus-plugin.version}</version>
              <extensions>true</extensions>
              <executions>
                <execution>
                  <goals>
                    <goal>build</goal>
                    <goal>generate-code</goal>
                    <goal>generate-code-tests</goal>
                  </goals>
                </execution>
              </executions>
            </plugin>

      2)

      Modify properties of the form

      org.kogito.openapi.client.<service_name>.<property name>

      to

      quarkus.rest-client."<fqcn generated class name>".<new property name

      For example

      org.kogito.openapi.client.queryservice.base_path

      to

      quarkus.rest-client."org.openapi.quarkus.api.DefaultApi".url

      Show
      OpenAPI invocations are now done, if codegen maven step is enabled, through https://github.com/quarkiverse/quarkus-openapi-generator This is a breaking compatibility change, you need to 1) Ensure maven codegen build step is enabled Your pom has this execution plugin <plugin>         <groupId>${quarkus.platform.group-id}</groupId>         <artifactId>quarkus-maven-plugin</artifactId>         <version>${quarkus-plugin.version}</version>         <extensions>true</extensions>         <executions>           <execution>             <goals>               <goal>build</goal>               <goal>generate-code</goal>               <goal>generate-code-tests</goal>             </goals>           </execution>         </executions>       </plugin> 2) Modify properties of the form org.kogito.openapi.client.<service_name>.<property name> to quarkus.rest-client."<fqcn generated class name>".<new property name For example org.kogito.openapi.client.queryservice.base_path to quarkus.rest-client."org.openapi.quarkus.api.DefaultApi".url
    • ---
    • ---
    • 2022 Week 17-19 (from Apr 25)

      Now that Kogito is generating OpenAPi extension file, it is time to change the parser to generate code to invoke this generated code.

              ftirados Francisco Javier Tirado Sarti
              ftirados Francisco Javier Tirado Sarti
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: