django-rest-framework-docs
django-rest-framework-docs copied to clipboard
[Live API] GET request successful but response is null
I am testing the Live API endpoints feature of drf-docs. The server is running on localhost. Get request is sent successfully as I can verify it from the running server's terminal.
Here is a screenshot
Is there some way I can help debug the issue . Thanks
Another thing I would like to mention is when the "live api" overlay opens, the response status is fixed at "awaiting request" for eternity. Only when I press "send", the response changes to the above screenshot.
I'm having the same issue with the null
response. You need to add "?format=json" to your url so it would be "/api/users/?format=json".
As mentionned by @alej0varas you can append ?format=json to your endpoint or you can directly add JSONRenderer as your default renderer in your settings : http://www.django-rest-framework.org/api-guide/renderers/#setting-the-renderers .