adoroszlai commented on a change in pull request #20: AMBARI-24969 - Infra
Manager: REST api cleanup
URL: https://github.com/apache/ambari-infra/pull/20#discussion_r238042730
##########
File path: ambari-infra-manager/pom.xml
##########
@@ -117,6 +118,49 @@
</execution>
</executions>
</plugin>
+ <plugin>
+ <groupId>com.github.kongchen</groupId>
+ <artifactId>swagger-maven-plugin</artifactId>
+ <version>${swagger-maven-plugin-version}</version>
+ <configuration>
+ <apiSources>
+ <apiSource>
+ <springmvc>false</springmvc>
+ <locations>org.apache.ambari.infra.rest</locations>
+ <schemes>
+ <scheme>http</scheme>
+ <scheme>https</scheme>
+ </schemes>
+ <basePath>/api/v1</basePath>
+ <info>
+ <title>Infra Manager REST API</title>
+ <version>1.0.0</version>
+ <description>Ambari Infra Manager REST APIs has inherent
support for querying, sorting and pagination</description>
+ <license>
+ <url>http://www.apache.org/licenses/LICENSE-2.0</url>
+ <name>Apache License, Version 2.0</name>
+ </license>
+ </info>
+ <outputFormats>yaml,json</outputFormats>
+ <swaggerDirectory>src/main/resources/swagger</swaggerDirectory>
Review comment:
```suggestion
<swaggerDirectory>${project.basedir}/src/main/resources/swagger</swaggerDirectory>
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services