I have two api in AssetController.java
1.
@RequestMapping(value = "api/getString", method = RequestMethod.GET, produces = "application/json")
public @ResponseBody
GetResult<String> getString() {
String str= UUID.randomUUID().toString();
return new GetResult<>(str);
}
2.
@RequestMapping(value = "api/asset", method = RequestMethod.POST, consumes = "application/json")
public ResponseEntity<Object> saveAsset(@Valid @RequestBody AssetDTO asset, BindingResult result)
throws ValidationException, ServiceException, AccessDeniedException, NotFoundException {....//to do something}
I want to use str of api/getString to use in api/asset?How can i do that? Thanks so much.