Skip to content

armgit / kaneo

Public Imported from GitHub
0

⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.

docs: add notification endpoint documentation

Andrej Acevskic65d5a48b457
diff --git a/apps/docs/content/docs/api/notifications/clearAllNotifications.mdx b/apps/docs/content/docs/api/notifications/clearAllNotifications.mdx
new file mode 100644
index 000000000..5d4cee0b3
--- /dev/null
+++ b/apps/docs/content/docs/api/notifications/clearAllNotifications.mdx
@@ -0,0 +1,17 @@
+---
+title: Clear All Notifications
+full: true
+_openapi:
+ method: DELETE
+ toc: []
+ structuredData:
+ headings: []
+ contents:
+ - content: Clear all notifications for the current user
+---
+
+{/* This file was generated by Fumadocs. Do not edit this file directly. Any changes should be made by running the generation command again. */}
+
+Clear all notifications for the current user
+
+<APIPage document={"./openapi.json"} operations={[{"path":"/notification/clear-all","method":"delete"}]} />
\ No newline at end of file
diff --git a/apps/docs/content/docs/api/notifications/createNotification.mdx b/apps/docs/content/docs/api/notifications/createNotification.mdx
new file mode 100644
index 000000000..faff3b4dd
--- /dev/null
+++ b/apps/docs/content/docs/api/notifications/createNotification.mdx
@@ -0,0 +1,17 @@
+---
+title: Create Notification
+full: true
+_openapi:
+ method: POST
+ toc: []
+ structuredData:
+ headings: []
+ contents:
+ - content: Create a new notification for a user
+---
+
+{/* This file was generated by Fumadocs. Do not edit this file directly. Any changes should be made by running the generation command again. */}
+
+Create a new notification for a user
+
+<APIPage document={"./openapi.json"} operations={[{"path":"/notification","method":"post"}]} />
\ No newline at end of file
diff --git a/apps/docs/content/docs/api/notifications/listNotifications.mdx b/apps/docs/content/docs/api/notifications/listNotifications.mdx
new file mode 100644
index 000000000..80f741c62
--- /dev/null
+++ b/apps/docs/content/docs/api/notifications/listNotifications.mdx
@@ -0,0 +1,17 @@
+---
+title: List Notifications
+full: true
+_openapi:
+ method: GET
+ toc: []
+ structuredData:
+ headings: []
+ contents:
+ - content: Get all notifications for the current user
+---
+
+{/* This file was generated by Fumadocs. Do not edit this file directly. Any changes should be made by running the generation command again. */}
+
+Get all notifications for the current user
+
+<APIPage document={"./openapi.json"} operations={[{"path":"/notification","method":"get"}]} />
\ No newline at end of file
diff --git a/apps/docs/content/docs/api/notifications/markAllNotificationsAsRead.mdx b/apps/docs/content/docs/api/notifications/markAllNotificationsAsRead.mdx
new file mode 100644
index 000000000..059b06c85
--- /dev/null
+++ b/apps/docs/content/docs/api/notifications/markAllNotificationsAsRead.mdx
@@ -0,0 +1,17 @@
+---
+title: Mark All Notifications As Read
+full: true
+_openapi:
+ method: PATCH
+ toc: []
+ structuredData:
+ headings: []
+ contents:
+ - content: Mark all notifications as read for the current user
+---
+
+{/* This file was generated by Fumadocs. Do not edit this file directly. Any changes should be made by running the generation command again. */}
+
+Mark all notifications as read for the current user
+
+<APIPage document={"./openapi.json"} operations={[{"path":"/notification/read-all","method":"patch"}]} />
\ No newline at end of file
diff --git a/apps/docs/content/docs/api/notifications/markNotificationAsRead.mdx b/apps/docs/content/docs/api/notifications/markNotificationAsRead.mdx
new file mode 100644
index 000000000..574b5e890
--- /dev/null
+++ b/apps/docs/content/docs/api/notifications/markNotificationAsRead.mdx
@@ -0,0 +1,17 @@
+---
+title: Mark Notification As Read
+full: true
+_openapi:
+ method: PATCH
+ toc: []
+ structuredData:
+ headings: []
+ contents:
+ - content: Mark a specific notification as read
+---
+
+{/* This file was generated by Fumadocs. Do not edit this file directly. Any changes should be made by running the generation command again. */}
+
+Mark a specific notification as read
+
+<APIPage document={"./openapi.json"} operations={[{"path":"/notification/{id}/read","method":"patch"}]} />
\ No newline at end of file
diff --git a/apps/docs/content/docs/api/notifications/meta.json b/apps/docs/content/docs/api/notifications/meta.json
new file mode 100644
index 000000000..df39fece5
--- /dev/null
+++ b/apps/docs/content/docs/api/notifications/meta.json
@@ -0,0 +1,11 @@
+{
+ "title": "Notifications",
+ "pages": [
+ "createNotification",
+ "listNotifications",
+ "markNotificationAsRead",
+ "markAllNotificationsAsRead",
+ "clearAllNotifications"
+ ],
+ "defaultOpen": true
+}