mirror of
https://github.com/valitydev/swag-dominant-cache.git
synced 2024-11-06 00:15:20 +00:00
rename paths, added DocumentType
This commit is contained in:
parent
1d8155cf0c
commit
1e9eed3360
21
openapi/components/schemas/DocumentType.yaml
Normal file
21
openapi/components/schemas/DocumentType.yaml
Normal file
@ -0,0 +1,21 @@
|
||||
type: object
|
||||
required:
|
||||
- documentTypeRef
|
||||
- name
|
||||
- description
|
||||
properties:
|
||||
documentTypeRef:
|
||||
description: Идентификатор типа документа
|
||||
type: string
|
||||
maxLength: 40
|
||||
minLength: 1
|
||||
name:
|
||||
description: Название типа документа
|
||||
type: string
|
||||
maxLength: 40
|
||||
minLength: 1
|
||||
description:
|
||||
description: Описание типа документа
|
||||
type: string
|
||||
maxLength: 128
|
||||
minLength: 1
|
@ -16,14 +16,18 @@ info:
|
||||
name: Apache 2.0
|
||||
url: https://www.apache.org/licenses/LICENSE-2.0.html
|
||||
paths:
|
||||
/category:
|
||||
$ref: ./paths/category.yaml
|
||||
/сashRegisterProvider:
|
||||
$ref: ./paths/сashRegisterProvider.yaml
|
||||
/categories:
|
||||
$ref: ./paths/categories.yaml
|
||||
/сashRegisterProviders:
|
||||
$ref: ./paths/сashRegisterProviders.yaml
|
||||
/documentTypes:
|
||||
$ref: ./paths/documentTypes.yaml
|
||||
tags:
|
||||
- name: category
|
||||
- name: categories
|
||||
x-displayName: Категории
|
||||
- name: сashRegisterProvider
|
||||
- name: сashRegisterProviders
|
||||
x-displayName: Провайдеры чеков
|
||||
- name: documentTypes
|
||||
x-displayName: Типы документа
|
||||
servers:
|
||||
- url: 'https://api.rbk.money/v1/dominant/cache'
|
||||
|
@ -1,8 +1,8 @@
|
||||
get:
|
||||
summary: Получить список категорий
|
||||
tags:
|
||||
- category
|
||||
operationId: getCategory
|
||||
- categories
|
||||
operationId: getCategories
|
||||
responses:
|
||||
'200':
|
||||
description: Список категорий
|
25
openapi/paths/documentTypes.yaml
Normal file
25
openapi/paths/documentTypes.yaml
Normal file
@ -0,0 +1,25 @@
|
||||
get:
|
||||
summary: Получить список типов документа
|
||||
tags:
|
||||
- documentTypes
|
||||
operationId: getDocumentTypes
|
||||
responses:
|
||||
'200':
|
||||
description: Список типов документа
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
type: object
|
||||
required:
|
||||
- results
|
||||
properties:
|
||||
results:
|
||||
type: array
|
||||
items:
|
||||
$ref: '../components/schemas/DocumentType.yaml'
|
||||
'400':
|
||||
$ref: '../components/responses/DefaultLogicError.yaml'
|
||||
'401':
|
||||
description: Ошибка авторизации
|
||||
'404':
|
||||
description: Заданный ресурс не найден
|
@ -1,8 +1,8 @@
|
||||
get:
|
||||
summary: Получить список провайдеров чеков
|
||||
tags:
|
||||
- сashRegisterProvider
|
||||
operationId: getCashRegisterProvider
|
||||
- сashRegisterProviders
|
||||
operationId: getCashRegisterProviders
|
||||
responses:
|
||||
'200':
|
||||
description: Список провайдеров
|
Loading…
Reference in New Issue
Block a user