From 78174093582b2da3fb36474a247e24a6dedf169b Mon Sep 17 00:00:00 2001 From: Tony Mack Date: Sun, 7 Apr 2013 20:17:38 -0400 Subject: [PATCH] initial checkin --- plstackapi/planetstack/views/roles.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 plstackapi/planetstack/views/roles.py diff --git a/plstackapi/planetstack/views/roles.py b/plstackapi/planetstack/views/roles.py new file mode 100644 index 0000000..d7ab78a --- /dev/null +++ b/plstackapi/planetstack/views/roles.py @@ -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 + -- 2.47.0