mirror of
https://github.com/valitydev/swag-dominant-cache.git
synced 2024-11-06 00:15:20 +00:00
Changed getting the result
This commit is contained in:
parent
239076e6a1
commit
1893497703
@ -1,9 +1,15 @@
|
||||
type: object
|
||||
required:
|
||||
- categoryRef
|
||||
- name
|
||||
- description
|
||||
- categoryType
|
||||
properties:
|
||||
categoryRef:
|
||||
description: Идентификатор категории
|
||||
type: string
|
||||
maxLength: 40
|
||||
minLength: 1
|
||||
name:
|
||||
description: Название категории
|
||||
type: string
|
||||
|
@ -1,17 +1,22 @@
|
||||
get:
|
||||
summary: Получить категорию по Ref_Id
|
||||
summary: Получить список категорий
|
||||
tags:
|
||||
- category
|
||||
operationId: getCategory
|
||||
parameters:
|
||||
- $ref: '../components/parameters/categoryRef.yaml'
|
||||
responses:
|
||||
'200':
|
||||
description: Категория найдена
|
||||
description: Список категорий
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '../components/schemas/Category.yaml'
|
||||
type: object
|
||||
required:
|
||||
- results
|
||||
properties:
|
||||
results:
|
||||
type: array
|
||||
items:
|
||||
$ref: '../components/schemas/Category.yaml'
|
||||
'400':
|
||||
$ref: '../components/responses/DefaultLogicError.yaml'
|
||||
'401':
|
||||
|
Loading…
Reference in New Issue
Block a user