From 4ea5f1eddb358ea96da6e40a537018d471aa1fc5 Mon Sep 17 00:00:00 2001 From: Saroj Singh <saroj.kumarsingh@tarento.com> Date: Wed, 4 Jan 2023 18:09:05 +0530 Subject: [PATCH] remove unwanted code --- .../formservice/controllers/FormsController.java | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/main/java/com/tarento/formservice/controllers/FormsController.java b/src/main/java/com/tarento/formservice/controllers/FormsController.java index a891c23..6d18adb 100644 --- a/src/main/java/com/tarento/formservice/controllers/FormsController.java +++ b/src/main/java/com/tarento/formservice/controllers/FormsController.java @@ -79,20 +79,6 @@ public class FormsController { return ResponseGenerator.successResponse(formsService.getFormById(formId)); } - @PostMapping(value = PathRoutes.FormServiceApi.GET_FORM_BY_ID, produces = MediaType.APPLICATION_JSON_VALUE) - public String deleteFormById( - @RequestHeader(value = Constants.Parameters.X_USER_INFO, required = false) String xUserInfo, - @RequestParam(value = Constants.ID, required = true) String id) throws JsonProcessingException { - Long formId = null; - if (id.length() <= 13) { - formId = Long.parseLong(id); - } else if (id instanceof String) { - FormData fData = decodeValue(String.valueOf(id)); - formId = fData.getId(); - } - return ResponseGenerator.successResponse(formsService.getFormById(formId)); - } - @PostMapping(value = PathRoutes.FormServiceApi.CREATE_FORM) public String createForm(@RequestBody FormDetail form, @RequestHeader(value = Constants.Parameters.X_USER_INFO, required = false) String xUserInfo) -- GitLab