/** * Find the job instance shard * @param id the job instance shard id * @return the job instance shard response */ @RequestMapping(value = "/instance_shards/{id}", method = RequestMethod.GET) public JsonResponse findJobInstanceShard(@PathVariable("id") Long id){ Response<JobInstanceShard> findResp = jobService.findJobInstanceShardById(id); if (!findResp.isSuccess()){ return JsonResponse.notOk(messages.get(findResp.getErr())); } return JsonResponse.ok(findResp.getData()); }