Skip to content

Commit

Permalink
Updated config settings, fix version for release
Browse files Browse the repository at this point in the history
  • Loading branch information
zvonegit committed Jul 10, 2018
1 parent 2abb20f commit bd58d63
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 5 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,14 @@ kumuluzee:
After the startup Swagger-UI is available at: http://localhost:8080/api-specs/ui.
If you want to completely disable swagger extension you can set the following property **kumuluzee.swagger.enabled** to false:
```yaml
kumuluzee:
swagger:
enabled: false
```
## Changelog
Recent changes can be viewed on Github on the [Releases Page](https://github.com/kumuluz/kumuluzee-swagger/releases)
Expand Down
2 changes: 1 addition & 1 deletion core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>kumuluzee-swagger-parent</artifactId>
<groupId>com.kumuluz.ee.swagger</groupId>
<version>1.2.0-SNAPSHOT</version>
<version>1.1.1</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public void init(KumuluzServerWrapper kumuluzServerWrapper, EeConfig eeConfig) {

ConfigurationUtil configurationUtil = ConfigurationUtil.getInstance();

if (configurationUtil.getBoolean("kumuluzee.swagger.spec.enabled").orElse(true)) {
if (configurationUtil.getBoolean("kumuluzee.swagger.enabled").orElse(true)) {

LOG.info("Initializing Swagger extension.");

Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<groupId>com.kumuluz.ee.swagger</groupId>
<artifactId>kumuluzee-swagger-parent</artifactId>
<packaging>pom</packaging>
<version>1.2.0-SNAPSHOT</version>
<version>1.1.1</version>

<modules>
<module>core</module>
Expand Down
2 changes: 1 addition & 1 deletion swagger-ui/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>kumuluzee-swagger-parent</artifactId>
<groupId>com.kumuluz.ee.swagger</groupId>
<version>1.2.0-SNAPSHOT</version>
<version>1.1.1</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ public void init(KumuluzServerWrapper kumuluzServerWrapper, EeConfig eeConfig) {
URL webApp = ResourceUtils.class.getClassLoader().getResource("swagger-ui");

if (webApp != null && configurationUtil.getBoolean("kumuluzee.swagger.ui.enabled").orElse(true) && configurationUtil
.getBoolean("kumuluzee.swagger.spec.enabled").orElse(true)) {
.getBoolean("kumuluzee.swagger.enabled").orElse(true)) {

swaggerUiParams.put("resourceBase", webApp.toString());
server.registerServlet(DefaultServlet.class, "/api-specs/ui/*", swaggerUiParams, 1);
Expand Down

0 comments on commit bd58d63

Please sign in to comment.