update api get resource

includes the method to get a single resource