Skip to content

Commit

Permalink
Merge remote-tracking branch 'remotes/github/fix/issue#4' into master…
Browse files Browse the repository at this point in the history
…-github
  • Loading branch information
zvonegit committed Oct 2, 2018
2 parents dee2b71 + 4679705 commit e2c9771
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,17 @@ kumuluzee:
enabled: false
```
## Changing hostname and base path
Hostname and base path can be overridden in swagger.[json,yaml] by setting config parameter **kumuluzee.swagger.base-url**. This will generate API definition with the address that needs to be known to the client consuming the API. It also solves the problems when API is running behind reverse-proxy or API Gateway (that modify the URL of the API).
```yaml
kumuluzee:
swagger:
base-url: http://microservice.kumuluz.com/customers-service/
```
If **kumuluzee.swagger.base-url** is not set the **kumuluzee.server.base-url** is used as a source setting for the API URL location. If neither is set the "http://localhost:8080" is used.
## Changelog
Recent changes can be viewed on Github on the [Releases Page](https://github.com/kumuluz/kumuluzee-swagger/releases)
Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@
<maven-compiler-plugin.version>3.6.1</maven-compiler-plugin.version>
<nexus.staging.plugin.version>1.6.8</nexus.staging.plugin.version>
<gpg.plugin.version>1.6</gpg.plugin.version>
<swagger.version>1.5.20</swagger.version>
<swagger-ui.version>3.19.0</swagger-ui.version>
<swagger.version>1.5.21</swagger.version>
<swagger-ui.version>3.19.2</swagger-ui.version>
<apache-commons.version>3.6</apache-commons.version>

<maven.plugin.api.version>3.5.0</maven.plugin.api.version>
Expand Down

0 comments on commit e2c9771

Please sign in to comment.