REST Builder Plugin

The REST Builder plugin lets you generate a REST layer defined in the REST Builder rest-config.yaml and rest-openapi.yaml files.

Usage

To use the plugin, include it in your project’s root pom.xml file:

<build>
    <plugins>
    ...
        <plugin>
            <groupId>com.liferay</groupId>
            <artifactId>com.liferay.portal.tools.rest.builder</artifactId>
            <version>1.0.22</version>
            <configuration>
            </configuration>
        </plugin>
    ...
    </plugins>
</build>

You can view an example POM containing the REST Builder configuration here.

Goals

The plugin adds one Maven goal to your project:

NameDescription
rest-builder:buildRuns the Liferay REST Builder.

Available Parameters

You can set the following parameters in the <configuration> section of the POM:

Parameter NameTypeDefault ValueDescription
copyrightFileFilenullThe file that contains the copyright header.
restConfigDirFile${project.projectDir}The directory that contains the rest-config.yaml and rest-openapi.yaml files.
« Lang Builder PluginService Builder Plugin »
この記事は役に立ちましたか?
0人中0人がこの記事が役に立ったと言っています