aboutsummaryrefslogtreecommitdiffstats
path: root/packages/open-api/lib/highlights.ts
diff options
context:
space:
mode:
authorMohamed Bassem <me@mbassem.com>2025-04-13 01:27:45 +0000
committerMohamed Bassem <me@mbassem.com>2025-04-13 01:53:11 +0000
commitcf97bace33fdd14f29ce947d55d17cba8fa85c11 (patch)
tree048a88eeabfcb1b1b32b2cd298c229e6c7082341 /packages/open-api/lib/highlights.ts
parenta39cd5f3c0a3e287652f945d203facab413b5b65 (diff)
downloadkarakeep-cf97bace33fdd14f29ce947d55d17cba8fa85c11.tar.zst
feat: Add an MCP server for karakeep
Diffstat (limited to 'packages/open-api/lib/highlights.ts')
-rw-r--r--packages/open-api/lib/highlights.ts41
1 files changed, 41 insertions, 0 deletions
diff --git a/packages/open-api/lib/highlights.ts b/packages/open-api/lib/highlights.ts
index 2e4ec2d1..6eb1970e 100644
--- a/packages/open-api/lib/highlights.ts
+++ b/packages/open-api/lib/highlights.ts
@@ -11,6 +11,7 @@ import {
} from "@karakeep/shared/types/highlights";
import { BearerAuth } from "./common";
+import { ErrorSchema } from "./errors";
import { PaginationSchema } from "./pagination";
export const registry = new OpenAPIRegistry();
@@ -84,6 +85,22 @@ registry.registerPath({
},
},
},
+ 400: {
+ description: "Bad highlight request",
+ content: {
+ "application/json": {
+ schema: ErrorSchema,
+ },
+ },
+ },
+ 404: {
+ description: "Bookmark not found",
+ content: {
+ "application/json": {
+ schema: ErrorSchema,
+ },
+ },
+ },
},
});
registry.registerPath({
@@ -105,6 +122,14 @@ registry.registerPath({
},
},
},
+ 404: {
+ description: "Highlight not found",
+ content: {
+ "application/json": {
+ schema: ErrorSchema,
+ },
+ },
+ },
},
});
@@ -127,6 +152,14 @@ registry.registerPath({
},
},
},
+ 404: {
+ description: "Highlight not found",
+ content: {
+ "application/json": {
+ schema: ErrorSchema,
+ },
+ },
+ },
},
});
@@ -158,5 +191,13 @@ registry.registerPath({
},
},
},
+ 404: {
+ description: "Highlight not found",
+ content: {
+ "application/json": {
+ schema: ErrorSchema,
+ },
+ },
+ },
},
});