Skip to content

Commit

Permalink
Commented out the unused API endpoint, which was created for testing.
Browse files Browse the repository at this point in the history
  • Loading branch information
deoyani committed Sep 29, 2020
1 parent 68ca50a commit 4e4ebab
Showing 1 changed file with 20 additions and 21 deletions.
41 changes: 20 additions & 21 deletions src/main/java/gov/nist/oar/rmm/controllers/SearchController.java
Expand Up @@ -91,7 +91,6 @@ public Document search(@ApiIgnore @Valid @RequestParam MultiValueMap<String, Str
* of logical operator was difficult to determine.
* Hence the original query string is used for initial validation of the request.
*/
System.out.println("Request :"+request.getQueryString());
if(request.getQueryString() != null) {
String[] rParams = request.getQueryString().split("&");
String prevParam = "";
Expand Down Expand Up @@ -205,24 +204,24 @@ public List<Document> extrasearch(@ApiIgnore @RequestParam Map<String, String> 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");
//
// }
}

0 comments on commit 4e4ebab

Please sign in to comment.