I am going to develop a web application with front-end being angular and backend being Django REST Framework. There is a need to do several validations from HTTP request including access token and api key validations. The key point is that some validations will be applicable for all APIs and some will be applicable to APIs on a need basis. I need to know the best approach on whether I could have a custom middleware for validations based on API endpoints or should I use Permission classes of DRF for validations based on API endpoints?
-- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/e20d37d0-73c8-4cf4-874d-bf78f44f93eb%40googlegroups.com.