Finishing the rest client