Skip to content

Commit

Permalink
feat: generate user service api client
Browse files Browse the repository at this point in the history
  • Loading branch information
mebo4b committed Oct 26, 2020
1 parent 490a2a5 commit 04486e0
Show file tree
Hide file tree
Showing 6 changed files with 1,617 additions and 2 deletions.
22 changes: 22 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,28 @@
<typeMappings>MessagesDTO=${project.groupId}.${project.artifactId}.api.model.rocket.chat.message.MessagesDTO</typeMappings>
</configuration>
</execution>
<!-- Generate client API for user service -->
<execution>
<id>userervice-client-model</id>
<phase>generate-sources</phase>
<goals>
<goal>generate</goal>
</goals>
<configuration>
<configOptions>
<sourceFolder>/</sourceFolder>
<library>resttemplate</library>
<dateLibrary>java8</dateLibrary>
</configOptions>
<inputSpec>${project.basedir}/services/userservice.yaml</inputSpec>
<generatorName>java</generatorName>
<generateApis>true</generateApis>
<generateApiTests>false</generateApiTests>
<generateModelTests>false</generateModelTests>
<apiPackage>${project.groupId}.${project.artifactId}.userservice.generated.web</apiPackage>
<modelPackage>${project.groupId}.${project.artifactId}.userservice.generated.web.model</modelPackage>
</configuration>
</execution>
</executions>
</plugin>
<!-- Code style check -->
Expand Down
Loading

0 comments on commit 04486e0

Please sign in to comment.