Mojolicious::Plugin::SwaggerUI - Swagger UI plugin for Mojolicious
# Mojolicious Lite plugin 'SwaggerUI' => { route => app->routes()->any('/swagger'), url => '/swagger.json', };
The plugin allows you to run the Swagger UI component inside your Mojolicious application.
plugin 'SwaggerUI' => { route => app()->routes()->any('/swagger') };
Route for the swagger-ui component. It defaults to a any route on /swagger-ui
/swagger-ui
plugin 'SwaggerUI' => { url => '/swagger.json' };
Url for the JSON Swagger specification. It defaults to /v1.
/v1
Mojolicious::Plugin::OpenAPI can expose the JSON Swagger spec under the base path route. You can poijust point the path in her and it will automatically work.
Tudor Marghidanu tudor@marghidanu.com
Copyright (C) 2019, Tudor Marghidanu.
This program is free software, you can redistribute it and/or modify it under the terms of the Artistic License version 2.0.
To install Mojolicious::Plugin::SwaggerUI, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Mojolicious::Plugin::SwaggerUI
CPAN shell
perl -MCPAN -e shell install Mojolicious::Plugin::SwaggerUI
For more information on module installation, please visit the detailed CPAN module installation guide.