Skip to content

Commit

Permalink
fixed comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtemHolikov committed Dec 17, 2024
1 parent 7410156 commit a63740c
Showing 1 changed file with 36 additions and 36 deletions.
72 changes: 36 additions & 36 deletions docs/category/category.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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.

0 comments on commit a63740c

Please sign in to comment.