Skip to content

Build your personal knowledge base with Trilium Notes

feat(options/etapi): link to the swagger UI that we ship

Panagiotis Papadopoulosf1f5839ea28d
diff --git a/src/public/app/widgets/type_widgets/options/etapi.ts b/src/public/app/widgets/type_widgets/options/etapi.ts
index 7effb61171..8de60d9ded 100644
--- a/src/public/app/widgets/type_widgets/options/etapi.ts
+++ b/src/public/app/widgets/type_widgets/options/etapi.ts
@@ -12,7 +12,8 @@ const TPL = `
<p>${t("etapi.description")} <br/>
${t("etapi.see_more", {
link_to_wiki: `<a class="tn-link" href="https://triliumnext.github.io/Docs/Wiki/etapi.html">${t("etapi.wiki")}</a>`,
- link_to_openapi_spec: `<a class="tn-link" onclick="window.open('etapi/etapi.openapi.yaml')" href="etapi/etapi.openapi.yaml">${t("etapi.openapi_spec")}</a>`
+ link_to_openapi_spec: `<a class="tn-link" onclick="window.open('etapi/etapi.openapi.yaml')" href="etapi/etapi.openapi.yaml">${t("etapi.openapi_spec")}</a>`,
+ link_to_swagger_ui: `<a class="tn-link" onclick="window.open('etapi/docs')" href="etapi/docs">${t("etapi.swagger_ui")}</a>`
})}
</p>
diff --git a/src/public/translations/cn/translation.json b/src/public/translations/cn/translation.json
index c63f56bc40..0910413d4d 100644
--- a/src/public/translations/cn/translation.json
+++ b/src/public/translations/cn/translation.json
@@ -1224,6 +1224,7 @@
"see_more": "",
"wiki": "维基",
"openapi_spec": "ETAPI OpenAPI 规范",
+ "swagger_ui": "",
"create_token": "创建新的 ETAPI 令牌",
"existing_tokens": "现有令牌",
"no_tokens_yet": "目前还没有令牌。点击上面的按钮创建一个。",
diff --git a/src/public/translations/de/translation.json b/src/public/translations/de/translation.json
index 39f00ebd7a..c486e68716 100644
--- a/src/public/translations/de/translation.json
+++ b/src/public/translations/de/translation.json
@@ -1248,9 +1248,10 @@
"etapi": {
"title": "ETAPI",
"description": "ETAPI ist eine REST-API, die für den programmgesteuerten Zugriff auf die Trilium-Instanz ohne Benutzeroberfläche verwendet wird.",
- "see_more": "Weitere Details können im {{- link_to_wiki}} und in der {{- link_to_openapi_spec}} gefunden werden.",
+ "see_more": "Weitere Details können im {{- link_to_wiki}} und in der {{- link_to_openapi_spec}} oder der {{- link_to_swagger_ui }} gefunden werden.",
"wiki": "Wiki",
"openapi_spec": "ETAPI OpenAPI-Spezifikation",
+ "swagger_ui": "ETAPI Swagger UI",
"create_token": "Erstelle ein neues ETAPI-Token",
"existing_tokens": "Vorhandene Token",
"no_tokens_yet": "Es sind noch keine Token vorhanden. Klicke auf die Schaltfläche oben, um eine zu erstellen.",
diff --git a/src/public/translations/en/translation.json b/src/public/translations/en/translation.json
index b2269176ca..cf5dbc0e62 100644
--- a/src/public/translations/en/translation.json
+++ b/src/public/translations/en/translation.json
@@ -1252,9 +1252,10 @@
"etapi": {
"title": "ETAPI",
"description": "ETAPI is a REST API used to access Trilium instance programmatically, without UI.",
- "see_more": "See more details in the {{- link_to_wiki}} and the {{- link_to_openapi_spec}}.",
+ "see_more": "See more details in the {{- link_to_wiki}} and the {{- link_to_openapi_spec}} or the {{- link_to_swagger_ui }}.",
"wiki": "wiki",
"openapi_spec": "ETAPI OpenAPI spec",
+ "swagger_ui": "ETAPI Swagger UI",
"create_token": "Create new ETAPI token",
"existing_tokens": "Existing tokens",
"no_tokens_yet": "There are no tokens yet. Click on the button above to create one.",
diff --git a/src/public/translations/es/translation.json b/src/public/translations/es/translation.json
index f757c04d35..b3f5e0e33b 100644
--- a/src/public/translations/es/translation.json
+++ b/src/public/translations/es/translation.json
@@ -1248,6 +1248,7 @@
"see_more": "",
"wiki": "wiki",
"openapi_spec": "Especificación ETAPI OpenAPI",
+ "swagger_ui": "",
"create_token": "Crear nuevo token ETAPI",
"existing_tokens": "Tokens existentes",
"no_tokens_yet": "Aún no hay tokens. Dé clic en el botón de arriba para crear uno.",
diff --git a/src/public/translations/fr/translation.json b/src/public/translations/fr/translation.json
index e4e3c5110f..ee8bf1411b 100644
--- a/src/public/translations/fr/translation.json
+++ b/src/public/translations/fr/translation.json
@@ -1255,6 +1255,7 @@
"see_more": "",
"wiki": "wiki",
"openapi_spec": "Spec ETAPI OpenAPI",
+ "swagger_ui": "",
"create_token": "Créer un nouveau jeton ETAPI",
"existing_tokens": "Jetons existants",
"no_tokens_yet": "Il n'y a pas encore de jetons. Cliquez sur le bouton ci-dessus pour en créer un.",
diff --git a/src/public/translations/ro/translation.json b/src/public/translations/ro/translation.json
index e04acd46a2..f1a82967ea 100644
--- a/src/public/translations/ro/translation.json
+++ b/src/public/translations/ro/translation.json
@@ -491,6 +491,7 @@
"new_token_title": "Token ETAPI nou",
"no_tokens_yet": "Nu există încă token-uri. Clic pe butonul de deasupra pentru a crea una.",
"openapi_spec": "Specificația OpenAPI pentru ETAPI",
+ "swagger_ui": "",
"rename_token": "Redenumește token-ul",
"rename_token_message": "Introduceți denumirea noului token",
"rename_token_title": "Redenumire token",
diff --git a/src/public/translations/tw/translation.json b/src/public/translations/tw/translation.json
index ae8381b5b4..d49d43772b 100644
--- a/src/public/translations/tw/translation.json
+++ b/src/public/translations/tw/translation.json
@@ -1199,10 +1199,10 @@
"etapi": {
"title": "ETAPI",
"description": "ETAPI 是一個 REST API,用於以編程方式訪問 Trilium 實例,而無需 UI。",
- "see_more": "更多詳情見",
+ "see_more": "",
"wiki": "維基",
- "and": "和",
"openapi_spec": "ETAPI OpenAPI 規範",
+ "swagger_ui": "",
"create_token": "新增新的 ETAPI 令牌",
"existing_tokens": "現有令牌",
"no_tokens_yet": "目前還沒有令牌。點擊上面的按鈕新增一個。",