'Returns list of records of a particular type'

def get_list(self, doctype, fields='"*"', filters=None, limit_start=0, limit_page_length=0):

    if (not isinstance(fields, basestring)):
        fields = json.dumps(fields)
    params = {'fields': fields}
    if filters:
        params['filters'] = json.dumps(filters)
    if limit_page_length:
        params['limit_start'] = limit_start
        params['limit_page_length'] = limit_page_length
    res = self.session.get(((self.url + '/api/resource/') + doctype), params=params, verify=self.verify)
    return self.post_process(res)
