php-silex.index.mustache Maven / Gradle / Ivy
{{httpMethod}}('{{{basePathWithoutHost}}}{{{path}}}', function(Application $app, Request $request{{#pathParams}}, ${{baseName}}{{/pathParams}}) {
{{#queryParams}}
${{paramName}} = $request->get('{{paramName}}');
{{/queryParams}}
{{#formParams}}
${{paramName}} = $request->get('{{paramName}}');
{{/formParams}}
return new Response('How about implementing {{operationId}} as a {{httpMethod}} method ?');
});
{{/operation}}
{{/operations}}
{{/apis}}
{{/apiInfo}}
$app->run();
© 2015 - 2024 Weber Informatics LLC | Privacy Policy