Skip to content

Commit

Permalink
MOSIP-38449 - /ftpchipdetail/v2 - Admin API review comments (#1101)
Browse files Browse the repository at this point in the history
* MOSIP-38449 - /ftpchipdetail/v2 - Admin API review comments

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

* MOSIP-38449 - /ftpchipdetail/v2 - Admin API review comments

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

---------

Signed-off-by: sudeep <[email protected]>
  • Loading branch information
Sudeep7353 authored Jan 16, 2025
1 parent 6347c38 commit eb237c0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ public ResponseWrapper<FtpCertDownloadResponeDto> getPartnerCertificate(

/*
* This endpoint has been deprecated since the release-1.3.x
* It has been replaced by the new GET /ftpchipdetail/search/v2 endpoint.
* It has been replaced by the new GET /ftpchipdetail/v2 endpoint.
* The functionality provided by this API is now available in the new endpoint.
* Please use the new endpoint for all future requests.
*/
Expand All @@ -246,7 +246,7 @@ public ResponseWrapper<FtpCertDownloadResponeDto> getPartnerCertificate(
@PostMapping("/search")
@PreAuthorize("hasAnyRole(@authorizedRoles.getPostftpchipdetailsearch())")
@Operation(summary = "Service to search ftp chip details - deprecated since release-1.3.x.",
description = "This endpoint has been deprecated since the release-1.3.x and replaced by the GET /ftpchipdetail/search/v2 endpoint.")
description = "This endpoint has been deprecated since the release-1.3.x and replaced by the GET /ftpchipdetail/v2 endpoint.")
public ResponseWrapper<PageResponseDto<FTPSearchResponseDto>> searchFtpChipDetails(
@RequestBody @Valid RequestWrapper<DeviceSearchDto> request) {
ResponseWrapper<PageResponseDto<FTPSearchResponseDto>> responseWrapper = new ResponseWrapper<>();
Expand Down Expand Up @@ -285,7 +285,7 @@ public ResponseWrapperV2<FtmCertificateDownloadResponseDto> getFtmCertificateDat
}

@PreAuthorize("hasAnyRole(@authorizedRoles.getGetpartnersftmchipdetails())")
@GetMapping(value = "/search/v2")
@GetMapping(value = "/v2")
@Operation(summary = "This endpoint retrieves a list of all FTM Chip details created by all the FTM Providers.",
description = "Available since release-1.3.x. This endpoint supports pagination, sorting, and filtering. It is configured for the role FTM_PROVIDER.")
@io.swagger.v3.oas.annotations.responses.ApiResponses(value = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ public void getPartnersFtmDetailsTest() throws Exception {

Mockito.when(ftpChipDetailServiceImpl.getPartnersFtmChipDetails(sortFieldName, sortType, pageNo, pageSize, filterDto))
.thenReturn(responseWrapper);
mockMvc.perform(MockMvcRequestBuilders.get("/ftpchipdetail/search/v2")
mockMvc.perform(MockMvcRequestBuilders.get("/ftpchipdetail/v2")
.param("sortFieldName", sortFieldName)
.param("sortType", sortType)
.param("pageNo", String.valueOf(pageNo))
Expand Down

0 comments on commit eb237c0

Please sign in to comment.