Closed mnich0ls closed 4 years ago
Assuming you are talking about including the request body.
The documentation should add the request body. Please check the input JSON file.
Input:
Markdown documentation:
HTML documentation:
Unfortunately, I could not simulate the response, but it will work fine.
Docgen version: v2.3 Support postman collection version > 2.1
Thanks for the appreciation!
I believe what you demonstrated is that the request body is shown for the “main” request, but they are not shown for the “examples” for the request. I can send more screen shots later this morning when I’m at my computer, if that helps.
I also need to get more familiar with better ways of organizing my collection. I’m using Postman “requests” to define specific routes of my API, rather than define many requests with different examples for the same route, if that makes sense..
The examples for a request:
Examples show up in the documentation as "responses" not as "examples" as they're named in Postman.
Please use the latest v3.0.0-rc
curl https://raw.githubusercontent.com/thedevsaddam/docgen/v3/install.sh -o install.sh && sudo chmod +x install.sh && sudo ./install.sh
Don't forget to provide feedback and close the opened issue.
I will try this today. Thank you!
This is great @thedevsaddam. I have some other suggestions, but I will put them in a new issue.
First off, this is a great little tool. I love it!
The "examples" for a request do not include the request body for each response example. I see how I can work around it by creating a new top-level request for each example, but it seems to clutter the interface in Postman by having to create a lot of requests for each API, rather than using the examples concept that seems to solve that problem quite nicely. I'm happy to reorganize my requests and APIs, but I'm curious if there's a way to have an optional flag to also include the request body for each example?
My API folders and routes in Postman:
An example request/response in Postman:
The resulting markdown without the request body:
Thanks!