search-service/src/main/java/com/stackroute/pie/controller/SearchController.java
//save method (temporary purpose)
save method (temporary purpose)
save method ( temporary purpose )
@PostMapping(value = "policy")
    public ResponseEntity<?> savePolicy(@RequestBody Policy policy)
    {
        ResponseEntity responseEntity;
        Policy policy1 = searchService.savePolicy(policy);
        responseEntity = new ResponseEntity<Policy>(policy1, HttpStatus.CREATED);
        return responseEntity;
    }
@ PostMapping ( value = "policy" ) public ResponseEntity < ? > savePolicy ( @ RequestBody Policy policy ) { ResponseEntity responseEntity ; Policy policy1 = searchService . savePolicy ( policy ) ; responseEntity = new ResponseEntity < Policy > ( policy1 , HttpStatus . CREATED ) ; return responseEntity ; }
save method (temporary purpose)
save method ( temporary purpose )