stable

Clone or download

Read-only

request #14397: API Explorer uses Swagger-UI v3

The API Explorer has been transformed into a plugin. Until now the API Explorer was sort of a part of the Tuleap core that could be present or not. This was manageable because the API Explorer was only static files, this is not the case anymore. To ease the transition the new plugin API Explorer is enabled by default on all existing instances. The page is always accessible as some REST endpoints can be queried as anonymous even when the instance does not allow anonymous users. To test, do not forget to redeploy nginx configuration since we have forced to do some changes. Change-Id: Id1c30b717a68edb0cb93b3838e5ff3bfefdb3489

Modified Files

Name
M .eslintignore +0 −1 Go to diff View file
A plugins/api_explorer/VERSION +1 −0 Go to diff View file
A plugins/api_explorer/build-manifest.json +4 −0 Go to diff View file
A plugins/api_explorer/composer.json +8 −0 Go to diff View file
A plugins/api_explorer/include/ExplorerController.php +63 −0 Go to diff View file
A plugins/api_explorer/include/api_explorerPlugin.php +87 −0 Go to diff View file
A plugins/api_explorer/package-lock.json +1159 −0 Go to diff View file
A plugins/api_explorer/package.json +18 −0 Go to diff View file
A plugins/api_explorer/phpunit/.simpletest_skip +0 −0 Go to diff View file
A plugins/api_explorer/phpunit/ExplorerControllerTest.php +64 −0 Go to diff View file
A plugins/api_explorer/phpunit/api_explorerPluginTest.php +50 −0 Go to diff View file
A plugins/api_explorer/phpunit/bootstrap.php +21 −0 Go to diff View file
A plugins/api_explorer/scripts/index.tsx +129 −0 Go to diff View file
A plugins/api_explorer/scripts/swagger-ui.d.ts +20 −0 Go to diff View file
A plugins/api_explorer/site-content/fr_FR/LC_MESSAGES/tuleap-api_explorer.po +13 −0 Go to diff View file
A plugins/api_explorer/templates/explorer.mustache +2 −0 Go to diff View file
A plugins/api_explorer/themes/style.scss +24 −0 Go to diff View file
A plugins/api_explorer/tsconfig.json +10 −0 Go to diff View file
A plugins/api_explorer/webpack.common.js +49 −0 Go to diff View file
A plugins/api_explorer/webpack.dev.js +23 −0 Go to diff View file
A plugins/api_explorer/webpack.prod.js +23 −0 Go to diff View file
A src/common/REST/ExplorerEndpointAvailableEvent.php +45 −0 Go to diff View file
A src/db/mysql/updates/2020/202001101700_enable_plugin_api_explorer.php +46 −0 Go to diff View file
M src/etc/nginx/tuleap.d/03-locations.conf +8 −0 Go to diff View file
M src/templates/help/api.mustache +3 −3 Go to diff View file
D src/www/api/.htaccess +0 −8 Go to diff View file
D src/www/api/VERSION +0 −1 Go to diff View file
D src/www/api/explorer/css/print.css +0 −1201 Go to diff View file
D src/www/api/explorer/css/reset.css +0 −125 Go to diff View file
D src/www/api/explorer/css/screen.css +0 −1350 Go to diff View file
D src/www/api/explorer/css/style.css +0 −250 Go to diff View file
D src/www/api/explorer/css/typography.css +0 −16 Go to diff View file
D src/www/api/explorer/fonts/DroidSans-Bold.ttf +- −- Go to diff View file
D src/www/api/explorer/fonts/DroidSans.ttf +- −- Go to diff View file
D src/www/api/explorer/images/collapse.gif +- −- Go to diff View file
D src/www/api/explorer/images/expand.gif +- −- Go to diff View file
D src/www/api/explorer/images/explorer_icons.png +- −- Go to diff View file
D src/www/api/explorer/images/logo_small.png +- −- Go to diff View file
D src/www/api/explorer/images/throbber.gif +- −- Go to diff View file
D src/www/api/explorer/index.html +0 −113 Go to diff View file
D src/www/api/explorer/lang/en.js +0 −55 Go to diff View file
D src/www/api/explorer/lang/es.js +0 −52 Go to diff View file
D src/www/api/explorer/lang/fr.js +0 −53 Go to diff View file
D src/www/api/explorer/lang/it.js +0 −52 Go to diff View file
D src/www/api/explorer/lang/ja.js +0 −53 Go to diff View file
D src/www/api/explorer/lang/pl.js +0 −53 Go to diff View file
D src/www/api/explorer/lang/pt.js +0 −53 Go to diff View file
D src/www/api/explorer/lang/ru.js +0 −55 Go to diff View file
D src/www/api/explorer/lang/tr.js +0 −53 Go to diff View file
D src/www/api/explorer/lang/translator.js +0 −39 Go to diff View file
D src/www/api/explorer/lang/zh-cn.js +0 −53 Go to diff View file
D src/www/api/explorer/lib/backbone-min.js +0 −15 Go to diff View file
D src/www/api/explorer/lib/handlebars-2.0.0.js +0 −28 Go to diff View file
D src/www/api/explorer/lib/highlight.7.3.pack.js +0 −1 Go to diff View file
D src/www/api/explorer/lib/jquery-1.8.0.min.js +0 −2 Go to diff View file
D src/www/api/explorer/lib/jquery.ba-bbq.min.js +0 −18 Go to diff View file
D src/www/api/explorer/lib/jquery.slideto.min.js +0 −1 Go to diff View file
D src/www/api/explorer/lib/jquery.wiggle.min.js +0 −8 Go to diff View file
D src/www/api/explorer/lib/jsoneditor.min.js +0 −11 Go to diff View file
D src/www/api/explorer/lib/marked.js +0 −1272 Go to diff View file
D src/www/api/explorer/lib/swagger-oauth.js +0 −338 Go to diff View file
D src/www/api/explorer/lib/underscore-min.js +0 −6 Go to diff View file
D src/www/api/explorer/lib/underscore-min.map +0 −1 Go to diff View file
D src/www/api/explorer/o2c.html +0 −20 Go to diff View file
D src/www/api/explorer/swagger-ui.js +0 −26321 Go to diff View file
M src/www/api/index.php +1 −1 Go to diff View file
M src/www/help/api.php +4 −3 Go to diff View file
M tools/rpm/Makefile +2 −4 Go to diff View file
M tools/rpm/tuleap.rhel6.spec +11 −9 Go to diff View file
M tools/rpm/tuleap.rhel7.spec +11 −8 Go to diff View file
M tools/utils/scripts/webpack-rule-configs.js +1 −1 Go to diff View file
M tools/utils/version_numbers/generate.sh +2 −8 Go to diff View file