Tony Mack | 7817409 | 2013-04-07 20:17:38 -0400 | [diff] [blame] | 1 | from django.http import Http404 |
2 | from rest_framework.views import APIView | ||||
3 | from rest_framework.response import Response | ||||
4 | from rest_framework import status | ||||
5 | |||||
6 | from plstackapi.planetstack.models import Role | ||||
7 | |||||
8 | |||||
9 | class RoleListCreate(APIView): | ||||
10 | """ | ||||
11 | List all roles or create a new role. | ||||
12 | """ | ||||
13 | |||||
14 | def post(self, request, format = None): | ||||
15 | print request | ||||
16 |