laravel-api-to-postman icon indicating copy to clipboard operation
laravel-api-to-postman copied to clipboard

Idea: Be able to set examples (with arguments, headers, etc.)

Open Stevemoretz opened this issue 3 years ago • 2 comments

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.

Stevemoretz avatar Dec 13 '21 15:12 Stevemoretz

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 👍

andreaselia avatar Dec 13 '21 15:12 andreaselia

@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.

robertmarney avatar Jan 22 '22 20:01 robertmarney

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.

andreaselia avatar Aug 22 '22 21:08 andreaselia