resource by id