'Get a list of flavors.
The listing result is an object with property "items". Each item is
a flavor. By default this will return the flavors for the user\'s
current project. If the user is admin, public flavors will also be
returned.
:param is_public: For a regular user, set to True to see all public
flavors. For an admin user, set to False to not see public flavors.
:param get_extras: Also retrieve the extra specs.
Example GET:
http://localhost/api/nova/flavors?is_public=true'

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

    is_public = request.GET.get('is_public')
    is_public = (is_public and (is_public.lower() == 'true'))
    get_extras = request.GET.get('get_extras')
    get_extras = bool((get_extras and (get_extras.lower() == 'true')))
    flavors = api.nova.flavor_list(request, is_public=is_public, get_extras=get_extras)
    result = {'items': []}
    for flavor in flavors:
        d = flavor.to_dict()
        if get_extras:
            d['extras'] = flavor.extras
        result['items'].append(d)
    return result
