Skip to content

Commit

Permalink
OP-21254: Added startdate and endDate audit-Api's for download
Browse files Browse the repository at this point in the history
  • Loading branch information
sudhakaropsmx committed Oct 19, 2023
1 parent f40e9da commit 76c9e8c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,10 @@ class OpsmxAuditClientServiceController {
@RequestParam(value = "isLatest", required = false) Boolean isLatest,
@RequestParam(value = "pageNo", required = false) Integer pageNo,
@RequestParam(value = "size", required = false) Integer size,
@RequestParam(value = "noOfDays", required = false) String noOfDays) {
Response response = opsmxAuditClientService.downloadCSVFile(version, username, source, isTreeView, isLatest, pageNo, size, noOfDays)
@RequestParam(value = "noOfDays", required = false) String noOfDays,
@RequestParam(value = "startDate", required = false) Long startDate,
@RequestParam(value = "endDate", required = false) Long endDate) {
Response response = opsmxAuditClientService.downloadCSVFile(version, username, source, isTreeView, isLatest, pageNo, size, noOfDays, startDate, endDate)
log.info("response for the insgiths endpoint:" + response.getHeaders())
if (response.getBody()!=null) {
InputStream inputStream = response.getBody().in()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,9 @@ interface OpsmxAuditClientService {
@Query("isLatest") Boolean isLatest,
@Query("pageNo") Integer pageNo,
@Query("size") Integer size,
@Query("noOfDays") String noOfDays)
@Query("noOfDays") String noOfDays,
@Query("startDate") Long startDate,
@Query("endDate") Long endDate)

@GET("/auditclientservice/{version}/{type}/{source}/download")
Response downloadDeliveryInsightsCSVFile(@Path('version') String version,
Expand Down

0 comments on commit 76c9e8c

Please sign in to comment.