def handle_get_reseller(self, req):
        if not self.is_reseller_admin(req):
            return self.denied_response(req)
        listing = []
        marker = ''
        while True:
            path = '/v1/%s?format=json&marker=%s' % (quote(self.auth_account),
                                                     quote(marker))
            resp = self.make_pre_authed_request(
                req.environ, 'GET', path).get_response(self.app)
            if resp.status_int // 100 != 2:
                raise Exception('Could not list main auth account: %s %s' %
                                (path, resp.status))
            sublisting = json.loads(resp.body)
            if not sublisting:
                break
            for container in sublisting:
                if container['name'][0] != '.':
                    listing.append({'name': container['name']})
            marker = sublisting[-1]['name'].encode('utf-8')
        return Response(body=json.dumps({'accounts': listing}),
                        content_type=CONTENT_TYPE_JSON)
Handles the GET v2 call for getting general reseller information
dataset/ETHPy150Open openstack/swauth/swauth/middleware.py/Swauth.handle_get_reseller