mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-06-05 08:20:53 +00:00
30 lines
692 B
PHP
30 lines
692 B
PHP
<?php
|
|
/**
|
|
* Swagger Petstore ' \" =end
|
|
* @version 1.0.0 ' \" =end
|
|
*/
|
|
|
|
require_once __DIR__ . '/vendor/autoload.php';
|
|
|
|
$app = new Slim\App();
|
|
|
|
|
|
/**
|
|
* PUT testCodeInject */ ' " =end
|
|
* Summary: To test code injection ' \" =end
|
|
* Notes:
|
|
* Output-Formats: [application/json, */ " =end]
|
|
*/
|
|
$app->PUT('/fake', function($request, $response, $args) {
|
|
|
|
|
|
$testCodeInjectEnd = $args['testCodeInjectEnd'];
|
|
|
|
$response->write('How about implementing testCodeInject */ ' " =end as a PUT method ?');
|
|
return $response;
|
|
});
|
|
|
|
|
|
|
|
$app->run();
|