Django Rest Framework APIView request

29 views
Skip to first unread message

Ammar Mohammed

unread,
Feb 1, 2021, 3:20:58 AM2/1/21
to Django users

Hi everyone i have an API View inherited from another class
i want to create a new app that reciver the current Client requests and process it then pass it to the original View
(all i want to do is to recive the view from the user (the user will use the original urls without any edit in the clients) then i want to add some value to one of the request variables and redirect it to the original APIView)

Chetan Ganji

unread,
Feb 1, 2021, 8:42:58 AM2/1/21
to django...@googlegroups.com
If it needs to be done on specific endpoints, write a custom decorator method for that endpoint.

If it needs to be done on every request, write custom middleware.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/c8b3c72e-6664-4aff-b427-69d2933b3ec5n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages