From fb3c50fe8f12d105d92bf80fdbad0af12ae9c7cb Mon Sep 17 00:00:00 2001 From: rajesh Date: Tue, 4 Nov 2025 20:12:06 +0530 Subject: [PATCH] Updated code --- .../web/rest/api/ApplicationContractApi.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/net/gepafin/tendermanagement/web/rest/api/ApplicationContractApi.java b/src/main/java/net/gepafin/tendermanagement/web/rest/api/ApplicationContractApi.java index c81e9a2b..350aa2ac 100644 --- a/src/main/java/net/gepafin/tendermanagement/web/rest/api/ApplicationContractApi.java +++ b/src/main/java/net/gepafin/tendermanagement/web/rest/api/ApplicationContractApi.java @@ -66,8 +66,8 @@ public interface ApplicationContractApi { @ExampleObject(value = ErrorConstants.UNAUTHORIZED_ERROR_EXAMPLE) })), @ApiResponse(responseCode = "400", description = "Bad Request", content = @Content(mediaType = MediaType.APPLICATION_JSON_VALUE, examples = { @ExampleObject(value = ErrorConstants.BADREQUEST_ERROR_EXAMPLE) })) }) - @GetMapping(value = "{applicationContractId}", produces = "application/json") - ResponseEntity> getApplicationContractById(HttpServletRequest request,@Parameter(description = "The application contract id", required = true) @RequestParam(value = "id", required = true) Long id); + @GetMapping(value = "{id}", produces = "application/json") + ResponseEntity> getApplicationContractById(HttpServletRequest request,@Parameter(description = "The application contract id", required = true) @PathVariable(value = "id", required = true) Long id); @Operation(summary = "Api to get an application contract by application id", responses = { @@ -78,7 +78,7 @@ public interface ApplicationContractApi { @ExampleObject(value = ErrorConstants.UNAUTHORIZED_ERROR_EXAMPLE) })), @ApiResponse(responseCode = "400", description = "Bad Request", content = @Content(mediaType = MediaType.APPLICATION_JSON_VALUE, examples = { @ExampleObject(value = ErrorConstants.BADREQUEST_ERROR_EXAMPLE) })) }) - @GetMapping(value = "/application/{applicationId}", produces = "application/json") + @GetMapping(value = "/application", produces = "application/json") ResponseEntity> getApplicationContractByApplicationId(HttpServletRequest request,@Parameter(description = "The application id", required = true) @RequestParam(value = "applicationId", required = true) Long applicationId); @Operation(summary = "Api to get an application contract by beneficiary user id", @@ -90,7 +90,7 @@ public interface ApplicationContractApi { @ExampleObject(value = ErrorConstants.UNAUTHORIZED_ERROR_EXAMPLE) })), @ApiResponse(responseCode = "400", description = "Bad Request", content = @Content(mediaType = MediaType.APPLICATION_JSON_VALUE, examples = { @ExampleObject(value = ErrorConstants.BADREQUEST_ERROR_EXAMPLE) })) }) - @GetMapping(value = "/user/{userId}", produces = "application/json") + @GetMapping(value = "/user", produces = "application/json") ResponseEntity>> getApplicationContractByBeneficiaryUserId(HttpServletRequest request,@Parameter(description = "The user id", required = true) @RequestParam(value = "userId", required = true) Long userId); }