Changed getting the result

This commit is contained in:
malkoas 2020-12-30 12:35:55 +03:00
parent 239076e6a1
commit 1893497703
2 changed files with 16 additions and 5 deletions

View File

@ -1,9 +1,15 @@
type: object
required:
- categoryRef
- name
- description
- categoryType
properties:
categoryRef:
description: Идентификатор категории
type: string
maxLength: 40
minLength: 1
name:
description: Название категории
type: string

View File

@ -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':