I'm just getting started to Django Rest Framework and i created my first endpoints. Now, i'm trying to add filtering to my URLS but there are two things i don't understand yet:
I created the following route:
router.register(r'endpoint', views.myView, basename='myView'). When i try to filter on my browser like the followinghttp://127.0.0.1:8000/api/endpoint?&user=TEST, i will get redirected tohttp://127.0.0.1:8000/api/endpoint/?&user=TEST. Why is there a slash before the??What is the difference between using
router.registerand a standard view on myurlpatternslike i would do in Django?