Skip to content

Commit

Permalink
GEODE-10375: update supported api docs link (#7794)
Browse files Browse the repository at this point in the history
(cherry picked from commit e0f20a5)
  • Loading branch information
jinmeiliao authored and onichols-pivotal committed Jun 10, 2022
1 parent f75edd9 commit c30c3ab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ public void getDocumentationLinks() throws Exception {
webContext.perform(get("/"))
.andDo(print())
.andExpect(status().isOk())
.andExpect(jsonPath("$.latest", is(basePath + "/v1/api-docs")))
.andExpect(jsonPath("$.latest", is(basePath + "/v3/api-docs")))
.andExpect(jsonPath("$.supported", hasSize(1)))
.andExpect(jsonPath("$.supported[0]", is(basePath + "/v1/api-docs")));
.andExpect(jsonPath("$.supported[0]", is(basePath + "/v3/api-docs")));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public ResponseEntity<DocLinks> getDocumentationLinks(HttpServletRequest request
DocLinks docLinks = new DocLinks();
String baseURL = request.getRequestURL().toString();
List<String> uriList = new ArrayList<>();
uriList.add(baseURL + "v1/api-docs");
uriList.add(baseURL + "v3/api-docs");
docLinks.setLatest(uriList.get(0));
docLinks.setSupported(uriList);
return new ResponseEntity<>(docLinks, HttpStatus.OK);
Expand Down

0 comments on commit c30c3ab

Please sign in to comment.