I would want to send a http request in a view. The request URL has relation to another view. Something like this:
class View_A(APIView):
def get(self, request):
return Response({'foo':'bar'})
class View_B(APIView):
def post(self, request):
# Here I would want to send a request to View_A, something like this:
request_view_A = View_A.as_view().get('URL_FROM_VIEW_A')
# ...
return Response({'foo2':'bar2'})
I have seen this question which has a different focus, however don't working for me because http method from View_A
(get) is different to http method from View_B
(post).