-
Notifications
You must be signed in to change notification settings - Fork 0
/
swagger-initializer.js
31 lines (29 loc) · 1.25 KB
/
swagger-initializer.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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: "swagger.json",
urls: [
{ url: "./api-definition/auth.yaml", name: "Auth" },
{ url: "./api-definition/directory.yaml", name: "Directory" },
{ url: "./api-definition/communication.yaml", name: "Communication" },
{ url: "./api-definition/timeline.yaml", name: "Timeline" },
{ url: "./api-definition/explorer.yaml", name: "Explorer" },
{ url: "./api-definition/conversation.yaml", name: "Conversation" },
{ url: "./api-definition/actualites.yaml", name: "Actualites" },
{ url: "./api-definition/infra.yaml", name: "Infra" },
{
url: "./api-definition/rbs.yaml",
name: " Reservation booking system (RBS)",
},
{ url: "./api-definition/blog.yaml", name: "Blog" },
{ url: "./api-definition/wiki.yaml", name: "Wiki" },
],
dom_id: "#swagger-ui",
deepLinking: true,
presets: [SwaggerUIBundle.presets.apis, SwaggerUIStandalonePreset],
plugins: [SwaggerUIBundle.plugins.DownloadUrl],
layout: "StandaloneLayout",
});
//</editor-fold>
};