Skip to content

Commit

Permalink
MOSIP:36506: Partners' details (Partner Admin) : API GET /partners/{p…
Browse files Browse the repository at this point in the history
…artnerId}/v2 (#960)

* MOSIP:36506: Partners' details (Partner Admin) : API GET /partners/{partnerId}/v2

Signed-off-by: sudeep <[email protected]>

* MOSIP:36506: Partners' details (Partner Admin) : API GET /partners/{partnerId}/v2

Signed-off-by: sudeep <[email protected]>

---------

Signed-off-by: sudeep <[email protected]>
  • Loading branch information
Sudeep7353 authored Oct 29, 2024
1 parent 06516aa commit 23ec653
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ public ResponseEntity<ResponseWrapper<String>> activateDeactivatePartnerAPIKey(@
}

@PreAuthorize("hasAnyRole(@authorizedRoles.getGetpartnerdetails())")
@GetMapping(value = "/v3/{partnerId}")
@GetMapping(value = "/{partnerId}/v2")
@Operation(summary = "Get Partner details.", description = "This endpoint will fetch partner details for the provided partner Id.")
@ApiResponses(value = {
@ApiResponse(responseCode = "200", description = "OK"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ public void getPartnerDetailsTest() throws Exception {
Mockito.when(partnerManagementService.getPartnerDetails(anyString()))
.thenReturn(responseWrapper);

mockMvc.perform(MockMvcRequestBuilders.get("/partners/v3/{partnerId}", "samplePartnerId")
mockMvc.perform(MockMvcRequestBuilders.get("/partners/{partnerId}/v2", "samplePartnerId")
.contentType(MediaType.APPLICATION_JSON))
.andExpect(MockMvcResultMatchers.status().isOk());
}
Expand Down

0 comments on commit 23ec653

Please sign in to comment.