docs: Add full Swagger JSDoc coverage

This commit is contained in:
Maksim Eltyshev
2025-09-08 16:20:27 +02:00
parent e6b4c33542
commit 5ad3134519
128 changed files with 7610 additions and 0 deletions

View File

@@ -31,6 +31,30 @@
* ```
*/
/**
* @swagger
* components:
* responses:
* NotFound:
* description: Resource not found
* content:
* application/json:
* schema:
* type: object
* required:
* - code
* - message
* properties:
* code:
* type: string
* description: Error code
* example: E_NOT_FOUND
* message:
* type: string
* description: Error message
* example: Resource not found
*/
module.exports = function notFound(message) {
const { res } = this;