Swagger2::Guides::CustomPlaceholder - Custom placeholders
The default placeholder type is the generic placeholder, meaning ":". This can be customized using x-mojo-placeholder in the API specification. The example in "SYNOPSIS" will enforce a relaxed placeholder.
x-mojo-placeholder
{ "swagger": "2.0", "basePath": "/api", "paths": { "/pets/{name}": { "get": { "x-mojo-controller": "MyApp::Controller::Petstore", "operationId": "listPets", "parameters": [ { "name": "name", "in": "path", "type": "string", "x-mojo-placeholder": "#" } ], "responses": { "200": { ... } } } } } }
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.