This is my controller -
@GetMapping("/dps/{documentName}")
@ResponseBody
public Document findAccountDetails(ObjectStore os, @PathVariable String documentName) {
return myService.fetchDocById(os, documentName);
}
and
ObjectStore is an interface present in this package -
com.filenet.api.core.ObjectStore