mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-06-17 22:30:53 +00:00
* Update php client (OAS3) bin/openapi3/php-petstore.sh * Update symfony server (OAS2) bin/php-symfony-petstore.sh * Lumen: remove 'swagger' * Update lumen server (OAS2) * Update php client (security): deleted 'SwaggerClient-php' folder * Update TEST_DIR * Update php client tests (OAS3) bin/openapi3/php-petstore.sh * Update php client (OAS2) bin/php-petstore.sh * Fix * Fix lumen -> php-lumen * Update lumen server (security) * Delete moved files currently it will generate into under 'lib' folder. * Fix slim -> php-slim * Update slim server (security) bin/security/slim-petstore-server.sh * Fix * Update dot files
30 lines
703 B
PHP
30 lines
703 B
PHP
<?php
|
|
/**
|
|
* OpenAPI 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:
|
|
|
|
*/
|
|
$app->PUT('/fake', function($request, $response, $args) {
|
|
|
|
|
|
|
|
$body = $request->getParsedBody();
|
|
$response->write('How about implementing testCodeInject */ ' " =end \r\n \n \r as a PUT method ?');
|
|
return $response;
|
|
});
|
|
|
|
|
|
|
|
$app->run();
|