HTTP handler to fetch jobs by their id