I have the following setup.
router = routers.DefaultRouter()
router.register(r'post', PostViewSet)
Then in my urlpatterns
url(r'^api/', include(router.urls)),
Then in my views.py
class PostViewSet(viewsets.ModelViewSet):
Now that works perfectly for my use case but I also want to do something like this to grab data from a certain day
/api/post/2013/08/09/
That would pull out all the data for that current day.. I'm a bit unsure how to do custom routes in django-rest