stable
Clone or download
Read-only
The file is now generated by the API Explorer plugin directly. A large section of the code used to do the generation comes from the Luracast\Restler\Explorer\v2\Explorer class. This change will allow us to information about which OAuth2 scope is needed to do some operations. It also sets the ground to generate the API specification file in the OpenAPI 3.0 format. Do not forget to redeploy nginx configuration and to clear Restler cache before testing. Part of story #14714: be an OpenID Connect provider Change-Id: I7fe0bb3de4232460e9157bcc2c3bd7d1bc868c7e
Modified Files
Name | ||||
---|---|---|---|---|
M | plugins/api_explorer/composer.json | +5 | −0 | Go to diff View file |
M | plugins/api_explorer/include/ExplorerController.php | +1 | −1 | Go to diff View file |
A | plugins/api_explorer/include/Specification/Swagger/SwaggerJson.php | +89 | −0 | Go to diff View file |
A | plugins/api_explorer/include/Specification/Swagger/SwaggerJsonAPIAccessKey.php | +44 | −0 | Go to diff View file |
A | plugins/api_explorer/include/Specification/Swagger/SwaggerJsonController.php | +86 | −0 | Go to diff View file |
A | plugins/api_explorer/include/Specification/Swagger/SwaggerJsonInfo.php | +55 | −0 | Go to diff View file |
A | plugins/api_explorer/include/Specification/Swagger/SwaggerJsonPathsAndDefinitions.php | +391 | −0 | Go to diff View file |
M | plugins/api_explorer/include/api_explorerPlugin.php | +32 | −2 | Go to diff View file |
A | plugins/api_explorer/phpunit/Specification/Swagger/SwaggerJsonControllerTest.php | +75 | −0 | Go to diff View file |
A | plugins/api_explorer/phpunit/Specification/Swagger/SwaggerJsonDemoRepresentation.php | +31 | −0 | Go to diff View file |
A | plugins/api_explorer/phpunit/Specification/Swagger/SwaggerJsonDemoResource.php | +55 | −0 | Go to diff View file |
A | plugins/api_explorer/phpunit/Specification/Swagger/_fixtures/swagger.json | +124 | −0 | Go to diff View file |
M | src/common/Http/Response/JSONResponseBuilder.php | +1 | −1 | Go to diff View file |
A | src/common/REST/RestlerFactory.php | +72 | −0 | Go to diff View file |
M | src/etc/nginx/tuleap.d/03-locations.conf | +1 | −1 | Go to diff View file |
M | src/www/api/index.php | +2 | −31 | Go to diff View file |
M | tests/phpunit/common/Http/Response/JSONResponseBuilderTest.php | +1 | −1 | Go to diff View file |
A | tests/phpunit/common/REST/RestlerFactoryTest.php | +57 | −0 | Go to diff View file |