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

Use Quarkus Extension OpenAPI client gen VI: Modify examples to use the extension

XMLWordPrintable

    • 2022 Week 17-19 (from Apr 25), 2022 Week 20-22 (from May 16)

      Now that all code is ready, it is time to modify existing examples not already modified (updated examples are qa-service and temperature conversion)  and integration test to use it. In order to do that, at least two things needs to be done:

      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."friendly file name".<new property name>

      For example

      org.kogito.openapi.client.queryservice.base_path

      to

      quarkus.rest-client."friendly file name".url

            rhn-support-zanini Ricardo Zanini
            ftirados Francisco Javier Tirado Sarti
            Tristan Radisson Tristan Radisson
            Tristan Radisson Tristan Radisson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: