Possible to add description responses? #120
-
Is it possible to add a description to every response. For example 404 responses. Right now only 200 responses automatically get the resource model as descript, but I also want to add a description for other responses. Or default to the http code. This can be helpful for exporting the api documentation. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Hey @ruuddeenen Can you show me an example of what you want to get? |
Beta Was this translation helpful? Give feedback.
-
Hi @romalytvynenko , Sorry for the late reply, I missed the notification. This is roughly what gets generated as responses for an endpoint; I would either like to have a default description for 422 (and other) response codes e.g. |
Beta Was this translation helpful? Give feedback.
@ruuddeenen sorry for the late reply.
Thanks for the screenshots, I see.
This is an interesting issue. Postman simply does not correctly use a description of referenced response. Notice how 422 response is a reference. If you check that reference you'll find that there is a description there. This is a description of response that Postman should've shown in the sidebar.
Did you find some workaround for this?