Sindbad~EG File Manager
/**
* @swagger
* components:
* schemas:
* Notification:
* type: object
* required:
* - user_id
* - message
* properties:
* user_id:
* type: string
* description: The ID of the user associated with the notification
* message:
* type: string
* description: The content of the notification message
* example:
* user_id: "607dcb2b9e0f4823aabb4a44"
* message: "Your task has been completed successfully."
* UpdateResponse:
* type: object
* properties:
* message:
* type: string
* example: "Data updated successfully"
* DeleteResponse:
* type: object
* properties:
* message:
* type: string
* example: "Notification deleted successfully"
* securitySchemes:
* bearerAuth:
* type: http
* scheme: bearer
* bearerFormat: JWT
*/
/**
* @swagger
* tags:
* - name: Notifications
* description: Operations related to notifications
*/
/**
* @swagger
* /notification/list:
* get:
* summary: Get a list of notifications
* tags: [Notifications]
* security:
* - bearerAuth: []
* responses:
* 200:
* description: List of notifications
* content:
* application/json:
* schema:
* type: array
* items:
* $ref: '#/components/schemas/Notification'
*/
/**
* @swagger
* /notification/add:
* post:
* summary: Create a new notification
* tags: [Notifications]
* security:
* - bearerAuth: []
* requestBody:
* required: true
* content:
* application/json:
* schema:
* $ref: '#/components/schemas/Notification'
* responses:
* 201:
* description: The notification was successfully created
* content:
* application/json:
* schema:
* $ref: '#/components/schemas/Notification'
*/
"use strict";
Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists