On 10 Dec 2014, at 1:32 am, Jan Henning Thorsen <[email protected]> wrote:

> I'm working on a new module that takes advantage of the Swagger2 API 
> documentation format.
> 
> https://metacpan.org/release/Swagger2
> https://metacpan.org/release/JHTHORSEN/Swagger2-0.03 (in case 0.03 isn't 
> visible from the line above)
> 
> Features:
> * Automatic route generation
> * Input/output validation in your Mojoliicous applicaiton
> * Swagger documentation to Perl documentation (POD)
> * JSON Schema validation
> 
> Plans:
> * Add Swagger::Client which wraps around Mojo::UserAgent and enables 
> input/output validation
> 
> Any feedback/ideas are very much appreciated.
> 
> 

Hi Jan,

Interesting idea!

I hacked for a while on essentially the reverse - generate the swagger JSON 
data from the Mojolicious routes + POD documentation. Thus the actual code and 
inline documentation becomes the source of truth for your API specification.

Maybe I need to pick it up again :-)

https://github.com/tardisx/mojolicious-command-swagger

        - Justin

-- 
You received this message because you are subscribed to the Google Groups 
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.

Reply via email to