Skip to content

Build your personal knowledge base with Trilium Notes

ETAPI WIP

zadamc448d34a3811
diff --git a/src/etapi/spec.openapi.yaml b/src/etapi/etapi.openapi.yaml
similarity index 99%
rename from src/etapi/spec.openapi.yaml
rename to src/etapi/etapi.openapi.yaml
index cff018fb8f..1d16e9ed05 100644
--- a/src/etapi/spec.openapi.yaml
+++ b/src/etapi/etapi.openapi.yaml
@@ -333,8 +333,6 @@ components:
type: string
content:
type: string
-
-
Note:
type: object
properties:
diff --git a/src/etapi/notes.js b/src/etapi/notes.js
index 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.js
index 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');
}