forked from loafle/openapi-generator-original
30 lines
819 B
PHP
30 lines
819 B
PHP
<?php
|
|
/**
|
|
* Swagger Petstore ' \" =end -- \\r\\n \\n \\r
|
|
* @version 1.0.0 ' \" =end -- \\r\\n \\n \\r
|
|
*/
|
|
|
|
require_once __DIR__ . '/vendor/autoload.php';
|
|
|
|
$app = new Slim\App();
|
|
|
|
|
|
/**
|
|
* PUT testCodeInject */ ' " =end \r\n \n \r
|
|
* Summary: To test code injection ' \" =end -- \\r\\n \\n \\r
|
|
* Notes:
|
|
* Output-Formats: [application/json, \" =end -- ]
|
|
*/
|
|
$app->PUT('/v2 ' \" =end -- \\r\\n \\n \\r/fake', function($request, $response, $args) {
|
|
|
|
|
|
$testCodeInjectEndRnNR = $args['testCodeInjectEndRnNR'];
|
|
|
|
$response->write('How about implementing testCodeInject */ ' " =end \r\n \n \r as a PUT method ?');
|
|
return $response;
|
|
});
|
|
|
|
|
|
|
|
$app->run();
|