Skip to content

Commit

Permalink
Merge pull request #1683 from imsuneth/67-rest-api-issue
Browse files Browse the repository at this point in the history
Fix for issue creating rest API using swagger definition
  • Loading branch information
imsuneth committed Jul 14, 2023
2 parents 8de0b04 + 83be4b6 commit a6481da
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public API generateSynapseAPI() throws APIGenException {
// url can be relative the place where the swagger is hosted.
apiContext = serversString;
}
if (apiContext.equals("/")) {
if (apiContext.isEmpty() || "/".equals(apiContext)) {
apiContext = SwaggerConstants.DEFAULT_CONTEXT;
}
//cleanup context : remove ending '/'
Expand Down

0 comments on commit a6481da

Please sign in to comment.