Re: Documenting responses

2018-08-26 Thread 'ju5t' via Django REST framework
Sorry, perhaps I should have posted what I have done already. We've been running Swagger for a while already and are currently looking into the default documentation options in DRF as they have been improving. The documentation didn't answer my question unfortunately. I'm specifically looking t

Re: Unit tests

2018-08-26 Thread 'ju5t' via Django REST framework
Although you don't need to change ALLOWED_HOSTS there is this little function that can help in case you do need to test your settings.py. https://docs.djangoproject.com/en/2.1/topics/testing/tools/#django.test.override_settings It's really useful. On Wednesday, August 22, 2018 at 1:23:07 PM UT

Documenting responses

2018-08-26 Thread 'ju5t' via Django REST framework
I'm trying to improve the documentation of our API. It took me a little while to find out that `help_text` adds the description but apart from that things are getting along as expected. The only problem I have at the moment is that I would like to document the responses, including the errors yo