blob: 583e7c4f1b3811cf2ac37a33d5fdeccefda79959 [file] [log] [blame]
from rest_framework.decorators import api_view
from rest_framework.response import Response
from rest_framework.reverse import reverse
@api_view(['GET'])
def api_root(request, format=None):
return Response({
'roles': reverse('role-list', request=request, format=format),
'users': reverse('user-list', request=request, format=format),
'keys': reverse('key-list', request=request, format=format),
#'nodes': reverse('node-list', request=request, format=format),
'sites': reverse('site-list', request=request, format=format),
'deploymentNetworks': reverse('deploymentnetwork-list', request=request, format=format),
'slices': reverse('slice-list', request=request, format=format),
'subnets': reverse('subnet-list', request=request, format=format),
'slivers': reverse('sliver-list', request=request, format=format),
'images': reverse('image-list', request=request, format=format),
'flavors': reverse('flavor-list', request=request, format=format),
})