blob: 707e06be522f986b25b913a01c791fad13dd40c0 [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({
8 'nodes': reverse('node-list', request=request, format=format),
9 'sites': reverse('site-list', request=request, format=format),
10 'deploymentNetworks': reverse('deploymentnetwork-list', request=request, format=format),
11 'slices': reverse('slice-list', request=request, format=format)
12 })