test documentation de l'API
continuous-integration/drone/push Build is failing Details

API
Vincent ASTOLFI 2 years ago
parent 0d6979f482
commit 38697e3d0b

@ -2,6 +2,7 @@
"require": { "require": {
"slim/slim": "4.*", "slim/slim": "4.*",
"slim/psr7": "^1.6", "slim/psr7": "^1.6",
"zircote/swagger-php": "^4.5" "zircote/swagger-php": "^4.5",
"doctrine/annotations": "^1.14"
} }
} }

@ -4,20 +4,20 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically" "This file is @generated automatically"
], ],
"content-hash": "07907c3d50700ee017ad7949856672cc", "content-hash": "4ce9f1d66c47bb3eda2eab2ef793483c",
"packages": [ "packages": [
{ {
"name": "doctrine/annotations", "name": "doctrine/annotations",
"version": "1.14.0", "version": "1.14.1",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/doctrine/annotations.git", "url": "https://github.com/doctrine/annotations.git",
"reference": "3587ab58646bc515b2e03bbd3cfcd3682e8df5bf" "reference": "9e034d7a70032d422169f27d8759e8d84abb4f51"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/doctrine/annotations/zipball/3587ab58646bc515b2e03bbd3cfcd3682e8df5bf", "url": "https://api.github.com/repos/doctrine/annotations/zipball/9e034d7a70032d422169f27d8759e8d84abb4f51",
"reference": "3587ab58646bc515b2e03bbd3cfcd3682e8df5bf", "reference": "9e034d7a70032d422169f27d8759e8d84abb4f51",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -78,9 +78,9 @@
], ],
"support": { "support": {
"issues": "https://github.com/doctrine/annotations/issues", "issues": "https://github.com/doctrine/annotations/issues",
"source": "https://github.com/doctrine/annotations/tree/1.14.0" "source": "https://github.com/doctrine/annotations/tree/1.14.1"
}, },
"time": "2022-12-11T18:25:48+00:00" "time": "2022-12-12T12:46:12+00:00"
}, },
{ {
"name": "doctrine/deprecations", "name": "doctrine/deprecations",

@ -1,6 +0,0 @@
<?php
require(__DIR__."/../vendor/autoload.php");
$openapi = \OpenApi\Generator::scan([__DIR__.'/../routes/Inscrit.php']);
//header('Content-Type: application/json');
echo $openapi->toJSON();
?>

@ -137,5 +137,5 @@ $app->post('/Inscrit/add/', function(Request $request, Response $response, array
->withHeader('content-type', 'application/json') ->withHeader('content-type', 'application/json')
->withStatus(500); ->withStatus(500);
} }
}) });
?> ?>

@ -7,8 +7,8 @@ $baseDir = dirname($vendorDir);
return array( return array(
'7b11c4dc42b3b3023073cb14e519683c' => $vendorDir . '/ralouphie/getallheaders/src/getallheaders.php', '7b11c4dc42b3b3023073cb14e519683c' => $vendorDir . '/ralouphie/getallheaders/src/getallheaders.php',
'a4a119a56e50fbb293281d9a48007e0e' => $vendorDir . '/symfony/polyfill-php80/bootstrap.php',
'320cde22f66dd4f5d3fd621d3e88b98f' => $vendorDir . '/symfony/polyfill-ctype/bootstrap.php', '320cde22f66dd4f5d3fd621d3e88b98f' => $vendorDir . '/symfony/polyfill-ctype/bootstrap.php',
'a4a119a56e50fbb293281d9a48007e0e' => $vendorDir . '/symfony/polyfill-php80/bootstrap.php',
'253c157292f75eb38082b5acb06f3f01' => $vendorDir . '/nikic/fast-route/src/functions.php', '253c157292f75eb38082b5acb06f3f01' => $vendorDir . '/nikic/fast-route/src/functions.php',
'6e3fae29631ef280660b3cdad06f25a8' => $vendorDir . '/symfony/deprecation-contracts/function.php', '6e3fae29631ef280660b3cdad06f25a8' => $vendorDir . '/symfony/deprecation-contracts/function.php',
); );

@ -8,8 +8,8 @@ class ComposerStaticInita934429c0ea4f4482346c5d296943a81
{ {
public static $files = array ( public static $files = array (
'7b11c4dc42b3b3023073cb14e519683c' => __DIR__ . '/..' . '/ralouphie/getallheaders/src/getallheaders.php', '7b11c4dc42b3b3023073cb14e519683c' => __DIR__ . '/..' . '/ralouphie/getallheaders/src/getallheaders.php',
'a4a119a56e50fbb293281d9a48007e0e' => __DIR__ . '/..' . '/symfony/polyfill-php80/bootstrap.php',
'320cde22f66dd4f5d3fd621d3e88b98f' => __DIR__ . '/..' . '/symfony/polyfill-ctype/bootstrap.php', '320cde22f66dd4f5d3fd621d3e88b98f' => __DIR__ . '/..' . '/symfony/polyfill-ctype/bootstrap.php',
'a4a119a56e50fbb293281d9a48007e0e' => __DIR__ . '/..' . '/symfony/polyfill-php80/bootstrap.php',
'253c157292f75eb38082b5acb06f3f01' => __DIR__ . '/..' . '/nikic/fast-route/src/functions.php', '253c157292f75eb38082b5acb06f3f01' => __DIR__ . '/..' . '/nikic/fast-route/src/functions.php',
'6e3fae29631ef280660b3cdad06f25a8' => __DIR__ . '/..' . '/symfony/deprecation-contracts/function.php', '6e3fae29631ef280660b3cdad06f25a8' => __DIR__ . '/..' . '/symfony/deprecation-contracts/function.php',
); );

@ -2,17 +2,17 @@
"packages": [ "packages": [
{ {
"name": "doctrine/annotations", "name": "doctrine/annotations",
"version": "1.14.0", "version": "1.14.1",
"version_normalized": "1.14.0.0", "version_normalized": "1.14.1.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/doctrine/annotations.git", "url": "https://github.com/doctrine/annotations.git",
"reference": "3587ab58646bc515b2e03bbd3cfcd3682e8df5bf" "reference": "9e034d7a70032d422169f27d8759e8d84abb4f51"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/doctrine/annotations/zipball/3587ab58646bc515b2e03bbd3cfcd3682e8df5bf", "url": "https://api.github.com/repos/doctrine/annotations/zipball/9e034d7a70032d422169f27d8759e8d84abb4f51",
"reference": "3587ab58646bc515b2e03bbd3cfcd3682e8df5bf", "reference": "9e034d7a70032d422169f27d8759e8d84abb4f51",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -32,7 +32,7 @@
"suggest": { "suggest": {
"php": "PHP 8.0 or higher comes with attributes, a native replacement for annotations" "php": "PHP 8.0 or higher comes with attributes, a native replacement for annotations"
}, },
"time": "2022-12-11T18:25:48+00:00", "time": "2022-12-12T12:46:12+00:00",
"type": "library", "type": "library",
"installation-source": "dist", "installation-source": "dist",
"autoload": { "autoload": {
@ -75,7 +75,7 @@
], ],
"support": { "support": {
"issues": "https://github.com/doctrine/annotations/issues", "issues": "https://github.com/doctrine/annotations/issues",
"source": "https://github.com/doctrine/annotations/tree/1.14.0" "source": "https://github.com/doctrine/annotations/tree/1.14.1"
}, },
"install-path": "../doctrine/annotations" "install-path": "../doctrine/annotations"
}, },

@ -5,7 +5,7 @@
'type' => 'library', 'type' => 'library',
'install_path' => __DIR__ . '/../../', 'install_path' => __DIR__ . '/../../',
'aliases' => array(), 'aliases' => array(),
'reference' => 'f8caddc10d70975a9f687fac5d007b340a7a8699', 'reference' => '0d6979f482a4dc4159775749125b647077c1dbcd',
'name' => '__root__', 'name' => '__root__',
'dev' => true, 'dev' => true,
), ),
@ -16,16 +16,16 @@
'type' => 'library', 'type' => 'library',
'install_path' => __DIR__ . '/../../', 'install_path' => __DIR__ . '/../../',
'aliases' => array(), 'aliases' => array(),
'reference' => 'f8caddc10d70975a9f687fac5d007b340a7a8699', 'reference' => '0d6979f482a4dc4159775749125b647077c1dbcd',
'dev_requirement' => false, 'dev_requirement' => false,
), ),
'doctrine/annotations' => array( 'doctrine/annotations' => array(
'pretty_version' => '1.14.0', 'pretty_version' => '1.14.1',
'version' => '1.14.0.0', 'version' => '1.14.1.0',
'type' => 'library', 'type' => 'library',
'install_path' => __DIR__ . '/../doctrine/annotations', 'install_path' => __DIR__ . '/../doctrine/annotations',
'aliases' => array(), 'aliases' => array(),
'reference' => '3587ab58646bc515b2e03bbd3cfcd3682e8df5bf', 'reference' => '9e034d7a70032d422169f27d8759e8d84abb4f51',
'dev_requirement' => false, 'dev_requirement' => false,
), ),
'doctrine/deprecations' => array( 'doctrine/deprecations' => array(

@ -130,10 +130,14 @@ final class DocLexer extends AbstractLexer
} }
/** @return array{value: int|string, type:self::T_*|null, position:int} */ /** @return array{value: int|string, type:self::T_*|null, position:int} */
public function peek(): array public function peek(): ?array
{ {
$token = parent::peek(); $token = parent::peek();
if ($token === null) {
return null;
}
return (array) $token; return (array) $token;
} }
} }

Loading…
Cancel
Save