initial checkin
authorTony Mack <tmack@paris.CS.Princeton.EDU>
Mon, 8 Apr 2013 00:17:38 +0000 (20:17 -0400)
committerTony Mack <tmack@paris.CS.Princeton.EDU>
Mon, 8 Apr 2013 00:17:38 +0000 (20:17 -0400)
plstackapi/planetstack/views/roles.py [new file with mode: 0644]

diff --git a/plstackapi/planetstack/views/roles.py b/plstackapi/planetstack/views/roles.py
new file mode 100644 (file)
index 0000000..d7ab78a
--- /dev/null
@@ -0,0 +1,16 @@
+from django.http import Http404
+from rest_framework.views import APIView
+from rest_framework.response import Response
+from rest_framework import status
+
+from plstackapi.planetstack.models import Role
+
+
+class RoleListCreate(APIView):
+    """ 
+    List all roles or create a new role.
+    """
+
+    def post(self, request, format = None):
+        print request
+