Open honkskillet opened 4 years ago
I can probably do a pull request for this but I'd want to know if you'd even be interested.
In case the author is looking for additional support for this, I would be interested in seeing this feature added. I'm a big fan of OpenAPI and I think it would be a great addition!
I suggest consider using openAPI 3.0 for document comments. (Or possibly an option of choosing btwn the two?)
At least according to this slant comparison, jsdoc is the most popular javascript documentation tool. https://www.slant.co/topics/5104/~javascript-documentation-tools
The really cool thing would be to use it with swagger/openApi 3 ui explorer.
So a jsdoc documentation comment would look like...
then in the express service file you could add just a few lines of code.
Besides giving you a url with the documentation, this also allows you to construct GET, POST, etc requests to your api right in the browser, and even set tokens for stuff like Auth.