Skip to content

Commit c30c3ab

Browse files
jinmeiliaoonichols-pivotal
authored andcommitted
GEODE-10375: update supported api docs link (#7794)
(cherry picked from commit e0f20a5)
1 parent f75edd9 commit c30c3ab

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

geode-web-management/src/integrationTest/java/org/apache/geode/management/internal/rest/DocLinksControllerRestIntegrationTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ public void getDocumentationLinks() throws Exception {
6868
webContext.perform(get("/"))
6969
.andDo(print())
7070
.andExpect(status().isOk())
71-
.andExpect(jsonPath("$.latest", is(basePath + "/v1/api-docs")))
71+
.andExpect(jsonPath("$.latest", is(basePath + "/v3/api-docs")))
7272
.andExpect(jsonPath("$.supported", hasSize(1)))
73-
.andExpect(jsonPath("$.supported[0]", is(basePath + "/v1/api-docs")));
73+
.andExpect(jsonPath("$.supported[0]", is(basePath + "/v3/api-docs")));
7474
}
7575
}

geode-web-management/src/main/java/org/apache/geode/management/internal/rest/controllers/DocLinksController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public ResponseEntity<DocLinks> getDocumentationLinks(HttpServletRequest request
3535
DocLinks docLinks = new DocLinks();
3636
String baseURL = request.getRequestURL().toString();
3737
List<String> uriList = new ArrayList<>();
38-
uriList.add(baseURL + "v1/api-docs");
38+
uriList.add(baseURL + "v3/api-docs");
3939
docLinks.setLatest(uriList.get(0));
4040
docLinks.setSupported(uriList);
4141
return new ResponseEntity<>(docLinks, HttpStatus.OK);

0 commit comments

Comments
 (0)