mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
* [enh] Revive the old auto documentation of API with swagger * [fix] RequestBody versus params in auto apidoc * [fix] Auto api doc no need of Headers on other than post * [fix] Remove Authentication from swagger API * Redelete bash completion * [fix] Delete file * Delete openapi.json * Delete doc/swagger * Add swagger stuff and bashcompletion to gitignore Co-authored-by: Alexandre Aubin <alex.aubin@mailoo.org>
42 lines
1.2 KiB
HTML
42 lines
1.2 KiB
HTML
<!-- HTML for static distribution bundle build -->
|
|
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title>Swagger UI</title>
|
|
<link rel="stylesheet" type="text/css" href="swagger/swagger-ui.css" />
|
|
<link rel="stylesheet" type="text/css" href="swagger/index.css" />
|
|
<link rel="icon" type="image/png" href="swagger/favicon-32x32.png" sizes="32x32" />
|
|
</head>
|
|
|
|
<body>
|
|
<div id="swagger-ui"></div>
|
|
<script src="swagger/swagger-ui-bundle.js" charset="UTF-8"> </script>
|
|
<script src="swagger/swagger-ui-standalone-preset.js" charset="UTF-8"> </script>
|
|
<script src="openapi.js" type="text/javascript" language="javascript"></script>
|
|
<script>
|
|
window.onload = function() {
|
|
//<editor-fold desc="Changeable Configuration Block">
|
|
// the following lines will be replaced by docker/configurator, when it runs in a docker-container
|
|
window.ui = SwaggerUIBundle({
|
|
spec: openapiJSON,
|
|
dom_id: '#swagger-ui',
|
|
deepLinking: true,
|
|
displayOperationId: true,
|
|
validatorUrl: null,
|
|
presets: [
|
|
SwaggerUIBundle.presets.apis,
|
|
SwaggerUIStandalonePreset
|
|
],
|
|
layout: "StandaloneLayout"
|
|
});
|
|
|
|
//</editor-fold>
|
|
};
|
|
|
|
|
|
|
|
</script>
|
|
</body>
|
|
</html>
|
|
|