From: Tony Mack Date: Mon, 8 Apr 2013 00:17:38 +0000 (-0400) Subject: initial checkin X-Git-Tag: 1.0~257 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=78174093582b2da3fb36474a247e24a6dedf169b;p=plstackapi.git initial checkin --- 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 +