mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-06-05 16:30:52 +00:00
* [Slim] Decouple Api files into separated PHP Classes This enhancement required for modular testing and code coverage generating. * [Slim] Define all app routes in SlimRouter PHP Class. Generate new samples
14 lines
289 B
PHP
14 lines
289 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';
|
|
|
|
use OpenAPIServer\SlimRouter;
|
|
|
|
$router = new SlimRouter();
|
|
$app = $router->getSlimApp();
|
|
$app->run();
|