How to generate list of response messages in Django REST Swagger?
<p>I have upgraded Django REST Framework to 3.5.0 yesterday because I need nice schema generation. </p>

<p>I am using <strong>Django REST Swagger</strong> to document my API but don't know how to list all possible response messages that an API endpoint provides.</p>

<p>It seems that there is automatic generation of success message corresponding to the action my endpoint is performing.</p>

<p>So POST actions generate 201 response code, without any description.</p>

<p><a href="https://i.stack.imgur.com/VKu0u.png" rel="noreferrer"><img src="https://i.stack.imgur.com/VKu0u.png" alt="enter image description here"></a></p>

<p>How would I go about adding all the response messages that my endpoint provides and give them some descriptions?</p>

<p>I am using </p>

<p><code>djangorestframework==3.5.0</code></p>

<p><code>django-rest-swagger==2.0.7</code></p>