GET resource by id rest api implemented