From a63740c510638f764913b7ee6d77c14af105c087 Mon Sep 17 00:00:00 2001 From: ArtemHolikov Date: Tue, 17 Dec 2024 21:56:54 +0200 Subject: [PATCH] fixed comments --- docs/category/category.yaml | 72 ++++++++++++++++++------------------- 1 file changed, 36 insertions(+), 36 deletions(-) diff --git a/docs/category/category.yaml b/docs/category/category.yaml index f0e78993..e91e65e9 100644 --- a/docs/category/category.yaml +++ b/docs/category/category.yaml @@ -179,6 +179,42 @@ paths: status: 401 code: UNAUTHORIZED message: The requested URL requires user authorization. + /categories/subjects/names: + get: + security: + - cookieAuth: [] + tags: + - Categories + summary: Finds and returns all subjects + description: Finds and returns names of all subjects in all categories. + produces: + - application/json + responses: + 200: + description: OK + content: + application/json: + schema: + $ref: '#/definitions/categoriesSubjects' + example: + - _id: 6422dbb9823be47b41eeb8d6 + name: Bass + - _id: 6422d995d898aa732d038e8f + name: Guitar + - _id: 6675859059019cd05eb119ff + name: Spanish + - _id: 6675878f59019cd05eb11a1e + name: Product Design + 401: + description: Unauthorized + content: + application/json: + schema: + $ref: '#/components/Error' + example: + status: 401 + code: UNAUTHORIZED + message: The requested URL requires user authorization. /categories/{id}: get: security: @@ -361,39 +397,3 @@ paths: status: 401 code: UNAUTHORIZED message: The requested URL requires user authorization. - /categories/subjects/names: - get: - security: - - cookieAuth: [] - tags: - - Categories - summary: Find all subjects's names - description: Finds and returns all subjects's names. - produces: - - application/json - responses: - 200: - description: OK - content: - application/json: - schema: - $ref: '#/definitions/categoriesSubjects' - example: - - _id: 6422dbb9823be47b41eeb8d6 - name: bass - - _id: 6422d995d898aa732d038e8f - name: guitar - - _id: 6675859059019cd05eb119ff - name: spanish - - _id: 6675878f59019cd05eb11a1e - name: product design - 401: - description: Unauthorized - content: - application/json: - schema: - $ref: '#/components/Error' - example: - status: 401 - code: UNAUTHORIZED - message: The requested URL requires user authorization.