Skip to content

Commit 1fa74e7

Browse files
committed
Created a generic _relationship_ endpoint view
1 parent b74c4e0 commit 1fa74e7

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

rest_framework_json_api/views.py

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
from rest_framework import generics
2+
from rest_framework.response import Response
3+
4+
5+
class RelationshipView(generics.GenericAPIView):
6+
def get(self, request, *args, **kwargs):
7+
return Response()
8+
9+
def put(self, request, *args, **kwargs):
10+
return Response()
11+
12+
def patch(self, request, *args, **kwargs):
13+
return Response()
14+
15+
def post(self, request, *args, **kwargs):
16+
return Response()
17+
18+
def delete(self, request, *args, **kwargs):
19+
return Response()

0 commit comments

Comments
 (0)