From 4e4ebab5bbcb370bcb6bf8017aba82989b7e3a9b Mon Sep 17 00:00:00 2001 From: deoyani Date: Tue, 29 Sep 2020 10:52:37 -0400 Subject: [PATCH] Commented out the unused API endpoint, which was created for testing. --- .../oar/rmm/controllers/SearchController.java | 41 +++++++++---------- 1 file changed, 20 insertions(+), 21 deletions(-) diff --git a/src/main/java/gov/nist/oar/rmm/controllers/SearchController.java b/src/main/java/gov/nist/oar/rmm/controllers/SearchController.java index 11b8c0c..cb8ece9 100644 --- a/src/main/java/gov/nist/oar/rmm/controllers/SearchController.java +++ b/src/main/java/gov/nist/oar/rmm/controllers/SearchController.java @@ -91,7 +91,6 @@ public Document search(@ApiIgnore @Valid @RequestParam MultiValueMap extrasearch(@ApiIgnore @RequestParam Map p } - /** - * TEST - * - * @param ediid - * @param params - * @return - * @throws CustomizationException - * @throws InvalidInputException - */ - - @RequestMapping(value = { - "/test/{ediid}" }, method = RequestMethod.POST, headers = "accept=application/json", produces = "application/json") - @ApiOperation(value = ".", nickname = "Cache Record Changes", notes = "Resource returns a record if it is editable and user is authenticated.") - public Document updateRecord(@PathVariable @Valid String ediid, @Valid @RequestBody String params) - throws Exception { - - logger.info("Update the given record: " + ediid); - return repo.findRecord("4765EE7CC5D3A396E0531A57068160031688"); - - } +// /** +// * TEST +// * +// * @param ediid +// * @param params +// * @return +// * @throws CustomizationException +// * @throws InvalidInputException +// */ +// +// @RequestMapping(value = { +// "/test/{ediid}" }, method = RequestMethod.POST, headers = "accept=application/json", produces = "application/json") +// @ApiOperation(value = ".", nickname = "Cache Record Changes", notes = "Resource returns a record if it is editable and user is authenticated.") +// public Document updateRecord(@PathVariable @Valid String ediid, @Valid @RequestBody String params) +// throws Exception { +// +// logger.info("Update the given record: " + ediid); +// return repo.findRecord("4765EE7CC5D3A396E0531A57068160031688"); +// +// } }