Skip to content

Commit

Permalink
fix(Swagger): fixed case where a / was already present at end of publ…
Browse files Browse the repository at this point in the history
…icUri in config

OpenSILEX/opensilex-dev!1260
  • Loading branch information
HART Maximilian committed Jul 22, 2024
1 parent c8279d5 commit d12a208
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 10 deletions.
28 changes: 19 additions & 9 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
<!-- TOC -->
* [Changelog](#changelog)
* [[1.3.1]](#131)
* [[1.3.2]](#132)
* [Fixed](#fixed)
* [[1.3.1]](#131)
* [Fixed](#fixed-1)
* [[1.3.0] - Dizzy Diamond](#130---dizzy-diamond-)
* [Changes and new features](#changes-and-new-features)
* [Fixed or optimized](#fixed-or-optimized)
Expand All @@ -19,9 +21,9 @@
* [Changes and new features](#changes-and-new-features-1)
* [Fixed or optimized](#fixed-or-optimized-5)
* [[1.2.2]](#122)
* [Fixed](#fixed-1)
* [[1.2.1]](#121)
* [Fixed](#fixed-2)
* [[1.2.1]](#121)
* [Fixed](#fixed-3)
* [[1.2.0] - Caramelized Crystal](#120---caramelized-crystal)
* [Highlight](#highlight-1)
* [Changes and new features](#changes-and-new-features-2)
Expand Down Expand Up @@ -55,13 +57,13 @@
* [Added or changed](#added-or-changed-1)
* [Fixed or optimized](#fixed-or-optimized-14)
* [[1.0.0-rc+4.1] - 2022-07-13](#100-rc41---2022-07-13)
* [Fixed](#fixed-3)
* [Fixed](#fixed-4)
* [[1.0.0-rc+4] - 2022-06-13](#100-rc4---2022-06-13)
* [Added or changed](#added-or-changed-2)
* [Fixed](#fixed-4)
* [Fixed](#fixed-5)
* [[1.0.0-rc+3] - 2022-05-05](#100-rc3---2022-05-05)
* [Added or changed](#added-or-changed-3)
* [Fixed](#fixed-5)
* [Fixed](#fixed-6)
* [[1.0.0-rc+2] - 2022-01-23](#100-rc2---2022-01-23)
* [Added](#added)
* [Added in pre-production](#added-in-pre-production)
Expand All @@ -77,15 +79,15 @@
* [Major bugs identified](#major-bugs-identified)
* [[1.0.0-beta+2.1] - 2021-07-27](#100-beta21---2021-07-27)
* [Added](#added-3)
* [Fixed](#fixed-6)
* [Fixed](#fixed-7)
* [[1.0.0-beta+2] - 2021-05-07](#100-beta2---2021-05-07)
* [Added](#added-4)
* [Changed](#changed-1)
* [[1.0.0-beta+1] - 2021-04-27](#100-beta1---2021-04-27)
* [Fixed](#fixed-7)
* [Fixed](#fixed-8)
* [[1.0.0-beta] - 2021-04-20](#100-beta---2021-04-20)
* [Added](#added-5)
* [Fixed](#fixed-8)
* [Fixed](#fixed-9)
* [[1.0.0-alpha] - 2020-11-30](#100-alpha---2020-11-30)
* [Added](#added-6)
<!-- TOC -->
Expand All @@ -97,6 +99,14 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).


## [1.3.2]

### Fixed

- (!1260) Fixed the link to swagger for the specific case where a "/" is at the end of server uri in the config file.


## [1.3.1]

### Fixed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
import javax.ws.rs.*;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;
import javax.ws.rs.core.UriBuilder;
import java.util.List;
import java.util.Properties;
import org.opensilex.OpenSilex;
Expand Down Expand Up @@ -106,8 +107,9 @@ public Response getVersionInfo() throws Exception {
versionInfoDTO.setApiDocs(
new ApiExternalDocsDTO(
"Opensilex API documentation",
this.serverModule.getBaseURL() + "/api-docs"
UriBuilder.fromPath(this.serverModule.getBaseURL()).path("/api-docs/").build().toString()
)

);

versionInfoDTO.setGithubPage(
Expand Down

0 comments on commit d12a208

Please sign in to comment.