diff --git a/tools/api-designer/src/js/index.ts b/tools/api-designer/src/js/index.ts
index 4a906309..bd38deae 100644
--- a/tools/api-designer/src/js/index.ts
+++ b/tools/api-designer/src/js/index.ts
@@ -13,6 +13,7 @@ document.addEventListener("DOMContentLoaded", function (event) {
// this was a quick hack, not the best solution
const app = new App();
+ // RSDL Editor
const rsdlEditor = initRsdlEditor(
document.getElementById("editor"),
(rsdl) => {
@@ -28,11 +29,12 @@ document.addEventListener("DOMContentLoaded", function (event) {
() => {}
);
app.addListener(
- new Listener("urlEditor", (rsdl) =>
- urlEditor.updateSchema(rsdl, schemaFormat.rsdl)
- )
+ new Listener("urlEditor", (rsdl) => {
+ urlEditor.updateSchema(rsdl, schemaFormat.rsdl);
+ })
);
+ // Visual Editor
const mermaidEditor = new MermaidEditor(
document.getElementById("visual-editor-gui-content"),
window,
@@ -62,6 +64,7 @@ document.addEventListener("DOMContentLoaded", function (event) {
app.publishRsdl("main", currentRsdl);
+ // Export
const dropdown = document.getElementById("export-dropdown");
const downloadToFile = (content, filename, contentType) => {
diff --git a/tools/api-explorer/src/html/index.html b/tools/api-explorer/src/html/index.html
index b91c201b..e81a39a1 100644
--- a/tools/api-explorer/src/html/index.html
+++ b/tools/api-explorer/src/html/index.html
@@ -86,6 +86,7 @@
Swagger UI
+