laravel-api-to-postman
laravel-api-to-postman copied to clipboard
Idea: Be able to set examples (with arguments, headers, etc.)
We could use getDocComment
to get the docblock and in there we can have some special docs written only for this purpose, would be really useful, I've checked your examples and notices the body of the request was empty.
https://www.php.net/manual/en/reflectionclass.getdoccomment.php
I'd like to contribute but don't have the time for it right now, just wanted to throw this idea out for now.
I'm always happy to see ideas where there is a programatic way to get parts of a file without having to open said file and crawl it.
I like the idea, and welcome contributions if you do by chance get time before I do 👍
@Stevemoretz - I have a PR for Review #62 - I went with this approach instead of the the swagger based package more structured approach to keep it simple.
I'm going to close this issue for the time being until someone (anyone participating here, or who may see/want this in the future) gets a chance to work on it. It's definitely a useful feature, and may actually have to be part of a rewrite I'd love to do when I get the time to focus on it.