docs: Add base path for API endpoints to Swagger

This commit is contained in:
Maksim Eltyshev
2025-09-08 18:25:26 +02:00
parent 68549d0da8
commit 5636cf27c0
99 changed files with 104 additions and 98 deletions

View File

@@ -5,7 +5,7 @@
/**
* @swagger
* /api/notifications:
* /notifications:
* get:
* summary: Get user notifications
* description: Retrieves all unread notifications for the current user, including creator users.

View File

@@ -5,7 +5,7 @@
/**
* @swagger
* /api/notifications/read-all:
* /notifications/read-all:
* post:
* summary: Mark all notifications as read
* description: Marks all notifications for the current user as read.

View File

@@ -5,7 +5,7 @@
/**
* @swagger
* /api/notifications/{id}:
* /notifications/{id}:
* get:
* summary: Get notification details
* description: Retrieves notification, including creator users. Users can only access their own notifications.

View File

@@ -5,7 +5,7 @@
/**
* @swagger
* /api/notifications/{id}:
* /notifications/{id}:
* patch:
* summary: Update notification
* description: Updates a notification. Users can only update their own notifications.