Get all jobs method in api and get job by id