'Get a list of projects.
By default a listing of all projects for the current domain are
returned.
You may specify GET parameters for domain_id (string), user_id
(string) and admin (boolean) to change that listing\'s context.
Additionally, paginate (boolean) and marker may be used to get
paginated listings.
The listing result is an object with properties:
items
The list of project objects.
has_more
Boolean indicating there are more results when pagination is used.'

@rest_utils.ajax()
def get(self, request):

    filters = rest_utils.parse_filters_kwargs(request, self.client_keywords)[0]
    if (len(filters) == 0):
        filters = None
    paginate = (request.GET.get('paginate') == 'true')
    admin = (False if (request.GET.get('admin') == 'false') else True)
    (result, has_more) = api.keystone.tenant_list(request, paginate=paginate, marker=request.GET.get('marker'), domain=request.GET.get('domain_id'), user=request.GET.get('user_id'), admin=admin, filters=filters)
    return dict(has_more=has_more, items=[d.to_dict() for d in result])
