insodoc / insomnia-documenter

Tool to create minimalist and beautiful API documentation pages using your Insomnia workspace export file.
MIT License
494 stars 59 forks source link

Example response not parsed #70

Closed nospoon closed 3 years ago

nospoon commented 3 years ago

Example responses are not parsed despite being wrapped between <!-- RESPONSE --> and <!-- ENDRESPONSE --> tags.

jozsefsallai commented 3 years ago

Hello.

You should use the following format:

```response:200
{
  "hello": "world"
}
```
nospoon commented 3 years ago

Thanks, that works. I couldn't any mention of this in the documentation, probably worth adding.

As a side note, I noticed it's not possible to add an example response with an empty body, like 204 No Content. It would be nice if it could also be displayed on the right with all the other response examples.