NAME
Swagger2::Guides::CustomPlaceholder - Custom placeholders
OVERVIEW
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.
SYNOPSIS
{
"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": { ... }
}
}
}
}
}
AUTHOR
Jan Henning Thorsen - jhthorsen@cpan.org