Quantcast
Channel: SCN : Blog List - All Communities
Viewing all articles
Browse latest Browse all 2548

YaaS client automatical generation approach

$
0
0


Open url: https://devportal.yaas.io/tools/servicesdk/index.html#Plug-ins

The 'generate-service' plug-in goal

This goal provides support to expose your RAML API as JAX-RS endpoints in your Java project. It also helps keep the implementation in sync with your API definition.

To configure the generator plug-in to execute the generate-service goal, you must add this plug-in configuration to your project.

Template:

clipboard1.png

Actual content in pom.xml:


clipboard2.png

The 'generate-client' plug-in goal

Use this Maven goal to generate client code for a RAML API definition during the project build process.

To configure thegeneratorplug-in to execute thegenerate-clientgoal, you must modify or extend theservice-sdk-generator-maven-pluginconfiguration.

Template:

clipboard3.png

Actual content in pom.xml:

clipboard4.png

mvn clean install, the corresponding client class is automatically generated in the folder specified in pom.xml:

clipboard5.png


Viewing all articles
Browse latest Browse all 2548

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>