router.register(r'person/food', views.PersonViewSet, base_name='Person');
Reference:
http://stackoverflow.com/questions/22083090/what-base-name-parameter-do-i-need-in-my-route-to-make-this-django-api-work
http://www.django-rest-framework.org/api-guide/routers/
No comments:
Post a Comment