Description
What do you guys think about supporting postman collections? It should be possible to integrate them in a similar manner as the curl documentation, although it could be tricky because a postman collection is described in one file.
As all the classes are re-instantiated on every call, one way of doing things would be trying to deserialize the given file into a list of postman-collection-models, append current request and overwrite the given file with the updated list.
A few changes would be needed in order to properly generify classes like SnippetWritingResultHandler
for them to support different output writers. The mentioned ResultHandler
is currently hardcoded to use the AsciiDoctorWriter
.
I am not quite sure on what is the best way to do this, since I cannot really figure out, which class should be responsible for determining in which format the request/response is going to be documented.
Although writing out postman collections is just a matter of implementing a DocumentationWriter
and DocumentationAction
s, it does not make much sense to use them in combination with the cURL stuff. So maybe classes like CurlDocumentation
should decide which DocumentationWriter
should be used to write the DocumentationAction
.
I would happily support the implementation of this feature request.