Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
ETAPI WIP
zadamc448d34a3811
diff --git a/src/etapi/spec.openapi.yaml b/src/etapi/etapi.openapi.yamlsimilarity index 99%rename from src/etapi/spec.openapi.yamlrename to src/etapi/etapi.openapi.yamlindex cff018fb8f..1d16e9ed05 100644--- a/src/etapi/spec.openapi.yaml+++ b/src/etapi/etapi.openapi.yaml@@ -333,8 +333,6 @@ components:type: stringcontent:type: string--Note:type: objectproperties:diff --git a/src/etapi/notes.js b/src/etapi/notes.jsindex a264a16422..e1268e61c3 100644--- a/src/etapi/notes.js+++ b/src/etapi/notes.js@@ -18,8 +18,6 @@ function register(router) {const foundNotes = searchService.searchNotes(search, searchParams);- console.log(foundNotes.map(note => mappers.mapNoteToPojo(note)));-res.json(foundNotes.map(note => mappers.mapNoteToPojo(note)));});diff --git a/src/etapi/spec.js b/src/etapi/spec.jsindex 43b2e3e3d3..83ac93a4b7 100644--- a/src/etapi/spec.js+++ b/src/etapi/spec.js@@ -1,11 +1,11 @@const fs = require('fs');const path = require('path');-const specPath = path.join(__dirname, 'spec.openapi.yaml');+const specPath = path.join(__dirname, 'etapi.openapi.yaml');let spec = null;function register(router) {- router.get('/etapi/spec.openapi.yaml', (req, res, next) => {+ router.get('/etapi/etapi.openapi.yaml', (req, res, next) => {if (!spec) {spec = fs.readFileSync(specPath, 'utf8');}