mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 17:59:55 +02:00
Better API documentation
This commit is contained in:
parent
a573e1543c
commit
e754679550
220 changed files with 23821 additions and 701 deletions
21
plugin/API/docs/swagger-initializer.js
Normal file
21
plugin/API/docs/swagger-initializer.js
Normal file
|
@ -0,0 +1,21 @@
|
|||
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({
|
||||
//url: "https://petstore.swagger.io/v2/swagger.json",
|
||||
url: "../swagger.json.php",
|
||||
dom_id: '#swagger-ui',
|
||||
deepLinking: true,
|
||||
presets: [
|
||||
SwaggerUIBundle.presets.apis,
|
||||
SwaggerUIStandalonePreset
|
||||
],
|
||||
plugins: [
|
||||
SwaggerUIBundle.plugins.DownloadUrl
|
||||
],
|
||||
layout: "StandaloneLayout"
|
||||
});
|
||||
|
||||
//</editor-fold>
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue