1 from rest_framework.decorators import api_view
2 from rest_framework.response import Response
3 from rest_framework.reverse import reverse
6 def api_root(request, format=None):
8 'deployments': reverse('deployment-list', request=request, format=format),
9 'images': reverse('image-list', request=request, format=format),
10 'nodes': reverse('node-list', request=request, format=format),
11 'projects': reverse('project-list', request=request, format=format),
12 'reservations': reverse('reservation-list', request=request, format=format),
13 'roles': reverse('role-list', request=request, format=format),
14 'serviceclasses': reverse('serviceclass-list', request=request, format=format),
15 'serviceresources': reverse('serviceresource-list', request=request, format=format),
16 'sites': reverse('site-list', request=request, format=format),
17 'slices': reverse('slice-list', request=request, format=format),
18 'slivers': reverse('sliver-list', request=request, format=format),
19 'tags': reverse('tag-list', request=request, format=format),
20 'users': reverse('user-list', request=request, format=format),