Mojolicious::Command::swagger2 - mojo swagger2 command
Mojolicious::Command::swagger2 is a command for interfacing with Swagger2.
# Call a method with arguments mojo swagger2 client path/to/spec.json <method> [args] # List methods mojo swagger2 client path/to/spec.json # Get documentation for a method mojo swagger2 client path/to/spec.json <method> help # Specifiy spec and/or base URL from environment. # Useful for shell wrappers SWAGGER_API_FILE=path/to/spec.json mojo swagger2 client <method> SWAGGER_BASE_URL=https://example.com/1.0 mojo swagger2 client <method> # Example arguments mojo swagger2 client path/to/spec.json list_pets '{"limit":10}' mojo swagger2 client path/to/spec.json list_pets limit=10 owner=joe mojo swagger2 client path/to/spec.json -b https://example.com/1.0 list_pets limit=10 owner=joe
Returns description of this command.
Returns usage of this command.
See "SYNOPSIS".
Copyright (C) 2014-2015, Jan Henning Thorsen
This program is free software, you can redistribute it and/or modify it under the terms of the Artistic License version 2.0.
Jan Henning Thorsen - jhthorsen@cpan.org
jhthorsen@cpan.org
To install Swagger2, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Swagger2
CPAN shell
perl -MCPAN -e shell install Swagger2
For more information on module installation, please visit the detailed CPAN module installation guide.