Mojolicious::Command::swagger23pm
Mojo swagger2 command
Usage
# Call a method with argumentsmojo swagger2 client path/to/spec.json <method> [args]# List methodsmojo swagger2 client path/to/spec.json# Get documentation for a methodmojo swagger2 client path/to/spec.json <method> help# Specify spec and/or base URL from environment.# Useful for shell wrappersSWAGGER_API_FILE=path/to/spec.json mojo swagger2 client <method>SWAGGER_BASE_URL=https://example.com/1.0 mojo swagger2 client <method># Example argumentsmojo swagger2 client path/to/spec.json list_pets '{"limit":10}'mojo swagger2 client path/to/spec.json list_pets limit=10 owner=joemojo swagger2 client path/to/spec.json -b https://example.com/1.0 list_pets limit=10 owner=joe
Overview
Mojolicious::Command::swagger2 is a command for interfacing with Swagger2.
Attributes
description
Returns description of this command.
usage
Returns usage of this command.
Methods
run
See "SYNOPSIS".
Copyright and license
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.