calls parse on list or detail

def parse(self, method, endpoint, body):
        ''' calls parse on list or detail '''
        if isinstance(body, dict):  # request body was already parsed
            return body
        if endpoint == 'list':
            return self.parse_list(body)

        return self.parse_detail(body)