blob: 78ef65826226f8b732cff1111eceed80c9189153 [file] [log] [blame]
Tony Mack0b2b8042013-04-07 19:55:27 -04001from rest_framework.decorators import api_view
2from rest_framework.response import Response
3from rest_framework.reverse import reverse
4
5@api_view(['GET'])
6def api_root(request, format=None):
7 return Response({
Tony Mack6b3ab0c2013-04-07 23:42:44 -04008 'roles': reverse('role-list', request=request, format=format),
9 #'nodes': reverse('node-list', request=request, format=format),
10 #'sites': reverse('site-list', request=request, format=format),
11 #'deploymentNetworks': reverse('deploymentnetwork-list', request=request, format=format),
12 #'slices': reverse('slice-list', request=request, format=format)
Tony Mack0b2b8042013-04-07 19:55:27 -040013 })