Method "post" Not Allowed With Django Rest Framework
I'm trying to create a JSON API compliant rest service using Django Rest Framework JSON API: https://django-rest-framework-json-api.readthedocs.io/en/stable/index.html I think I'm
Solution 1:
Add some API prefix to your url include statement as,
urlpatterns = [
url(r'sample', include(ROUTER.urls)),
]
Thus your end-point will be, /greeters/sample/
for list-api (HTTP GET) and create api (HTTP POST)
Post a Comment for "Method "post" Not Allowed With Django Rest Framework"