Add all without p2p

This commit is contained in:
k.struzhkin 2021-07-07 17:11:24 +03:00
parent f76926d54e
commit acbd6cdd0f
71 changed files with 1048 additions and 348 deletions

View File

@ -0,0 +1,10 @@
type: object
required:
- result
properties:
records:
type: array
items:
$ref: '../schemas/PaymentCountInfo.yaml'
listType:
$ref: '../schemas/ListType.yaml'

View File

@ -0,0 +1,10 @@
type: object
properties:
errors:
type: array
items:
type: string
id:
type: string
template:
type: string

View File

@ -0,0 +1,8 @@
type: object
required:
- result
properties:
result:
type: array
items:
$ref: '../schemas/TemplateModel.yaml'

View File

@ -0,0 +1,8 @@
type: object
required:
- result
properties:
result:
type: array
items:
$ref: '../schemas/GroupReferenceModel.yaml'

View File

@ -0,0 +1,8 @@
type: object
required:
- result
properties:
result:
type: array
items:
$ref: '../schemas/GroupModel.yaml'

View File

@ -0,0 +1,9 @@
type: object
properties:
count:
type: integer
format: int32
result:
type: array
items:
$ref: '../schemas/PaymentReferenceModel.yaml'

View File

@ -0,0 +1,11 @@
type: object
required:
- result
properties:
count:
type: integer
format: int32
result:
type: array
items:
$ref: '../schemas/TemplateModel.yaml'

View File

@ -3,4 +3,4 @@ required:
- result
properties:
result:
$ref: '../../schemas/ArrayResult.yaml'
$ref: '../schemas/ArrayResult.yaml'

View File

@ -0,0 +1,7 @@
type: object
properties:
validateResults:
type: array
items:
$ref: '../schemas/ErrorTemplateModel.yaml'

View File

@ -0,0 +1,10 @@
type: object
required:
- result
properties:
errors:
type: array
items:
$ref: '../schemas/ValidationError.yaml'
result:
type: string

View File

@ -1,31 +0,0 @@
description: Информацмя по банковской карте
required:
- cardToken
- lastDigits
- bin
properties:
bin:
description: bin карты
type: string
minLength: 3
maxLength: 20
lastDigits:
description: Последнии цифры карты
type: string
minLength: 3
maxLength: 20
binCountryCode:
description: 'Страна карты, alpha-3 код по стандарту [ISO 3166-1](https://en.wikipedia.org/wiki/ISO_3166-1)'
type: string
pattern: '^[A-Z]{3}$'
example: "RUS"
cardToken:
description: Токен идентифицирующий карту
type: string
minLength: 1
maxLength: 200
bankName:
description: Название банка
type: string
minLength: 1
maxLength: 200

View File

@ -1,16 +0,0 @@
description: Платежная информация
required:
- amount
- currency
properties:
amount:
description: Сумма платежа
type: integer
format: int64
currency:
description: >-
Валюта, символьный код согласно [ISO
4217](http://www.iso.org/iso/home/standards/currency_codes.htm).
type: string
pattern: '^[A-Z]{3}$'

View File

@ -0,0 +1,18 @@
type: object
properties:
count:
type: integer
format: int64
createdAt:
type: string
format: date-time
destination:
type: string
name:
type: string
subject:
type: string
type:
type: string
enum:
- mail

View File

@ -6,7 +6,9 @@ required:
properties:
commandType:
type: string
enum: ["CREATE", "DELETE"]
enum:
- CREATE
- DELETE
id:
type: integer
initiator:
@ -18,15 +20,12 @@ properties:
type: string
objectType:
type: string
enum": [
"template",
"reference",
"group_reference",
"group",
"p2p_group_reference",
"p2p_reference",
"black",
"white",
"grey",
"naming"
]
enum:
- template
- reference
- group_reference
- group
- black
- white
- grey
- naming

View File

@ -0,0 +1,11 @@
type: object
properties:
count:
type: integer
format: int64
endCountTime:
type: string
format: date-time
startCountTime:
type: string
format: date-time

View File

@ -0,0 +1,8 @@
type: object
properties:
errors:
type: array
items:
type: string
id:
type: string

View File

@ -0,0 +1,10 @@
type: object
properties:
groupId:
type: string
modifiedByUser:
type: string
priorityTemplates:
type: array
items:
$ref: './PriorityIdModel.yaml'

View File

@ -0,0 +1,15 @@
type: object
properties:
groupId:
type: string
id:
type: string
lastUpdateDate:
type: string
format: date-time
modifiedByUser:
type: string
partyId:
type: string
shopId:
type: string

View File

@ -0,0 +1,7 @@
name: listType
type: string
enum:
- black
- white
- grey
- naming

View File

@ -1,12 +0,0 @@
description: Информация о мерчанте
required:
- shopId
- partyId
properties:
shopId:
description: Идентификатор магазина
type: string
partyId:
description: Идентификатор пати
type: string

View File

@ -0,0 +1,32 @@
type: object
properties:
alertchanel:
type: string
createdAt:
type: string
format: date-time
frequency:
type: string
groupbyparams:
type: string
name:
type: string
period:
type: string
queryText:
type: string
status:
type: string
enum:
- CREATED
- ACTIVE
- ARCHIVE
subject:
type: string
templateType:
type: string
templateValue:
type: string
updatedAt:
type: string
format: date-time

View File

@ -1,25 +0,0 @@
description: P2p контекст
required:
- cashInfo
- bankCard
- transferId
- identityId
properties:
payerInfo:
$ref: './UserInfo.yaml'
cashInfo:
$ref: './CashInfo.yaml'
sender:
$ref: './BankCard.yaml'
receiver:
$ref: './BankCard.yaml'
transferId:
description: Идентификатор перевода
type: string
identityId:
description: Идентификатор мерчанта
type: string
createdAt:
description: Дата и время создания
type: string
format: date-time

View File

@ -1,6 +0,0 @@
type: object
required:
- context
properties:
context:
$ref: './P2pContext.yaml'

View File

@ -1,5 +0,0 @@
type: string
enum:
- 'payment_resource'
- 'customer'
- 'recurrent'

View File

@ -1,41 +0,0 @@
description: Контекст платежа
required:
- cashInfo
- bankCard
- merchantInfo
- invoiceId
- paymentId
- payerType
properties:
payerInfo:
$ref: './UserInfo.yaml'
cashInfo:
$ref: './CashInfo.yaml'
bankCard:
$ref: './BankCard.yaml'
merchantInfo:
$ref: './MerchantInfo.yaml'
mobile:
description: Признак мобильного платежа
type: boolean
default: false
recurrent:
description: Признак рекурентного платежа
type: boolean
default: false
invoiceId:
description: Идентификатор счета
type: string
paymentId:
description: Идентификатор платежа
type: string
payerType:
description: Тип плательщика
$ref: './PayerType.yaml'
tokenMobileProvider:
description: Провайдер предоставляющий токен для мобильного платежа
type: string
createdAt:
description: Дата и время создания
type: string
format: date-time

View File

@ -0,0 +1,6 @@
type: object
properties:
countInfo:
$ref: './CountInfo.yaml'
listRecord:
$ref: './PaymentListRecord.yaml'

View File

@ -1,6 +0,0 @@
type: object
required:
- context
properties:
context:
$ref: './PaymentContext.yaml'

View File

@ -0,0 +1,10 @@
type: object
properties:
listName:
type: string
partyId:
type: string
shopId:
type: string
value:
type: string

View File

@ -0,0 +1,15 @@
type: object
properties:
id:
type: string
lastUpdateDate:
type: string
format: date-time
modifiedByUser:
type: string
partyId:
type: string
shopId:
type: string
templateId:
type: string

View File

@ -0,0 +1,10 @@
type: object
properties:
id:
type: string
lastUpdateTime:
type: string
format: date-time
priority:
type: integer
format: int64

View File

@ -1,6 +0,0 @@
type: string
enum:
- 'low'
- 'high'
- 'fatal'
default: 'high'

View File

@ -0,0 +1,6 @@
name: sortOrder
type: string
enum:
- ASC
- DESC
- DEFAULT

View File

@ -0,0 +1,10 @@
type: object
properties:
id:
type: string
lastUpdateDate:
type: string
modifiedByUser:
type: string
template:
type: string

View File

@ -1,8 +0,0 @@
description: Информацмя о клиенте
properties:
ip:
type: string
email:
type: string
fingerprint:
type: string

View File

@ -0,0 +1,4 @@
type: object
properties:
errorReason:
type: string

View File

@ -13,7 +13,7 @@ info:
name: Apache 2.0
url: https://www.apache.org/licenses/LICENSE-2.0.html
security:
- bearer: []
- bearerAuth: []
tags:
- name: error-codes
x-displayName: Коды ошибок
@ -21,28 +21,22 @@ tags:
$ref: './docs/error-codes.md'
- name: audit
x-displayName: Audit
- name: basic-error-controller
x-displayName: Basic Error Controller
- name: clickhouse-notificator-proxy-facade
x-displayName: Clickhouse Notificator Proxy Facade
- name: group-command-resource
x-displayName: Group Command Resource
- name: lists-resource
x-displayName: Lists Resource
- name: operation-handler
x-displayName: Operation Handler
- name: payment-emulate-resource
x-displayName: Payment Emulate Resource
- name: payment-group-query-resource
x-displayName: Payment Group Query Resource
- name: payment-load-data-resource
x-displayName: Payment Load Data Resource
- name: payment-template-command-resource
x-displayName: Payment Template Command Resource
- name: payment-template-query-resource
x-displayName: Payment Template Query Resource
- name: reference-query-resource
x-displayName: Reference Query Resource
- name: notification
x-displayName: Notifications
- name: group
x-displayName: Groups
- name: group-reference
x-displayName: Groups reference
- name: lists
x-displayName: Lists
- name: emulation
x-displayName: Emulation
- name: load-data
x-displayName: Load data
- name: template
x-displayName: Templates
- name: reference
x-displayName: References
paths:
# Audit
/audit/commandTypes:
@ -80,7 +74,7 @@ paths:
# Groups reference
/group/{id}/reference:
$ref: ./paths/group/reference/insertGroupReference.yaml
$ref: ./paths/group/reference/insertGroupReferences.yaml
/group/{id}/reference/remove:
$ref: ./paths/group/reference/removeGroupReferenceById.yaml
/group/reference/filter:
@ -97,8 +91,6 @@ paths:
$ref: ./paths/lists/getAvailableListNames.yaml
/lists/filter:
$ref: ./paths/lists/filterLists.yaml
/lists/names:
$ref: ./paths/lists/getListNames.yaml
# Templates
/template:
@ -134,3 +126,48 @@ paths:
servers:
- url: 'https://fb-management:8080/fb-management/v1'
components:
parameters:
sortOrder:
name: sortOrder
in: query
required: false
schema:
type: string
enum:
- ASC
- DESC
- DEFAULT
initiator:
name: initiator
in: query
required: true
schema:
type: string
searchValue:
name: searchValue
in: query
schema:
type: string
sortBy:
name: sortBy
in: query
schema:
type: string
sortFieldValue:
name: sortFieldValue
in: query
schema:
type: string
lastId:
name: lastId
in: query
schema:
type: string
size:
name: size
in: query
schema:
type: integer
format: int32

View File

@ -6,6 +6,11 @@ get:
required:
- commandTypes
parameters:
- $ref: "#/components/parameters/sortOrder"
- $ref: "#/components/parameters/searchValue"
- $ref: "#/components/parameters/sortBy"
- $ref: "#/components/parameters/sortFieldValue"
- $ref: "#/components/parameters/size"
- name: commandTypes
type: array
in: query
@ -25,28 +30,6 @@ get:
- name: lastId
type: string
in: query
- name: name
type: string
in: query
- name: searchValue
type: string
in: query
- name: sortBy
type: string
in: query
- name: sortFieldValue
type: string
in: query
- name: sortOrder
type: string
in: query
enum:
- ASC
- DESC
- DEFAULT
- name: size
type: int32
in: query
responses:
'201':

View File

@ -3,10 +3,6 @@ get:
operationId: getCommandTypes
tags:
- audit
parameters:
- name: id
type: string
in: query
responses:
'201':
@ -14,7 +10,7 @@ get:
content:
application/json:
schema:
$ref: '../../components/responses/audit/ListResponse.yaml'
$ref: '../../components/responses/ListResponse.yaml'
'401':
description: Unauthorized
'403':

View File

@ -3,10 +3,6 @@ get:
operationId: getObjectTypes
tags:
- audit
parameters:
- name: name
type: string
in: query
responses:
'201':
@ -14,7 +10,7 @@ get:
content:
application/json:
schema:
$ref: '../../components/responses/audit/ListResponse.yaml'
$ref: '../../components/responses/ListResponse.yaml'
'401':
description: Unauthorized
'403':

View File

@ -1,6 +1,28 @@
post:
summary: Test
operationId: test
get:
summary: Список исполняемых темплейтов в порядке выполнения
operationId: getTemplatesFlowByPartyAndShop
tags:
- test
- emulation
parameters:
- name: partyId
type: string
in: query
- name: shopId
type: string
in: query
responses:
'201':
description: Object types list
content:
application/json:
schema:
$ref: '../../components/responses/EmulateResponse.yaml'
'401':
description: Unauthorized
'403':
description: Forbidden
'404':
description: Not Found

View File

@ -1,6 +1,27 @@
post:
summary: Test
operationId: test
get:
summary: Поиск груп
operationId: filterGroups
tags:
- test
- group
parameters:
- $ref: "#/components/parameters/sortOrder"
- $ref: "#/components/parameters/searchValue"
- $ref: "#/components/parameters/sortBy"
- $ref: "#/components/parameters/sortFieldValue"
- $ref: "#/components/parameters/size"
responses:
'201':
description: Groups models
content:
application/json:
schema:
$ref: '../../components/responses/FilterGroupsResponse.yaml'
'401':
description: Unauthorized
'403':
description: Forbidden
'404':
description: Not Found

View File

@ -1,6 +1,25 @@
post:
summary: Test
operationId: test
get:
summary: Поиск группы
operationId: getGroupById
tags:
- test
- group
parameters:
- name: groupId
type: string
in: query
responses:
'201':
description: Group model
content:
application/json:
schema:
$ref: '../../components/schemas/GroupModel.yaml'
'401':
description: Unauthorized
'403':
description: Forbidden
'404':
description: Not Found

View File

@ -1,6 +1,27 @@
post:
summary: Test
operationId: test
summary: Создание группы
operationId: insertGroup
tags:
- test
- group
requestBody:
content:
application/json:
schema:
$ref: '../../components/schemas/GroupModel.yaml'
responses:
'201':
description: Created group id
content:
application/json:
schema:
type: string
'401':
description: Unauthorized
'403':
description: Forbidden
'404':
description: Not Found

View File

@ -1,6 +1,33 @@
post:
summary: Test
operationId: test
get:
summary: Поиск ссылок на группы
operationId: filterGroupsReferences
tags:
- test
- group-reference
required:
- groupId
- name
parameters:
- $ref: "#/components/parameters/sortOrder"
- $ref: "#/components/parameters/searchValue"
- $ref: "#/components/parameters/sortBy"
- $ref: "#/components/parameters/sortFieldValue"
- $ref: "#/components/parameters/size"
- name: lastId
type: string
in: query
responses:
'201':
description: Groups references
content:
application/json:
schema:
$ref: '../../../components/responses/FilterGroupsReferencesResponse.yaml'
'401':
description: Unauthorized
'403':
description: Forbidden
'404':
description: Not Found

View File

@ -1,6 +0,0 @@
post:
summary: Test
operationId: test
tags:
- test

View File

@ -1,6 +0,0 @@
post:
summary: Test
operationId: test
tags:
- test

View File

@ -1,6 +0,0 @@
post:
summary: Test
operationId: test
tags:
- test

View File

@ -0,0 +1,34 @@
post:
summary: Привязка группы к магазинам
operationId: insertGroupReferences
tags:
- group-reference
parameters:
- name: id
type: string
required: true
in: path
requestBody:
content:
application/json:
schema:
type: array
items:
$ref: '../../../components/schemas/GroupReferenceModel.yaml'
responses:
'201':
description: Created group id
content:
application/json:
schema:
type: string
'401':
description: Unauthorized
'403':
description: Forbidden
'404':
description: Not Found

View File

@ -1,6 +1,35 @@
post:
summary: Test
operationId: test
delete:
summary: Удаление ссылки на группу
operationId: removeGroupReferenceById
tags:
- test
- group-reference
parameters:
- name: id
type: string
required: true
in: path
- name: groupId
type: string
in: query
- name: partyId
type: string
in: query
- name: shopId
type: string
in: query
responses:
'201':
description: Removed group reference id
content:
application/json:
schema:
type: string
'401':
description: Unauthorized
'403':
description: Forbidden
'404':
description: Not Found

View File

@ -1,6 +1,25 @@
delete:
summary: Test
operationId: test
summary: Удаление группы
operationId: removeGroupById
tags:
- test
- group
parameters:
- name: groupId
type: string
in: query
responses:
'201':
description: Removed group id
content:
application/json:
schema:
type: string
'401':
description: Unauthorized
'403':
description: Forbidden
'404':
description: Not Found

View File

@ -1,6 +1,42 @@
post:
summary: Test
operationId: test
get:
summary: Поиск по ЧБ спискам
operationId: filterLists
tags:
- test
- lists
parameters:
- $ref: "#/components/parameters/sortOrder"
- $ref: "#/components/parameters/searchValue"
- $ref: "#/components/parameters/sortBy"
- $ref: "#/components/parameters/sortFieldValue"
- $ref: "#/components/parameters/size"
- name: listNames
type: array
in: query
items:
type: string
- name: listType
type: array
in: query
enum:
- white
- black
- grey
- naming
responses:
'201':
description: Groups models
content:
application/json:
schema:
$ref: '../../components/responses/FilterGroupsResponse.yaml'
'401':
description: Unauthorized
'403':
description: Forbidden
'404':
description: Not Found

View File

@ -1,6 +1,20 @@
post:
summary: Test
operationId: test
get:
summary: Запросить перечень списков
operationId: getAvailableListNames
tags:
- test
- lists
responses:
'201':
description: Available list names
content:
application/json:
schema:
$ref: '../../components/responses/ListResponse.yaml'
'401':
description: Unauthorized
'403':
description: Forbidden
'404':
description: Not Found

View File

@ -1,6 +0,0 @@
post:
summary: Test
operationId: test
tags:
- test

View File

@ -1,6 +1,29 @@
post:
summary: Test
operationId: test
summary: Добавление записей в ЧБ списках
operationId: insertRowToList
tags:
- test
- lists
requestBody:
content:
application/json:
schema:
$ref: '../../components/requests/InsertRowToListRequest.yaml'
responses:
'201':
description: Created row in list
content:
application/json:
schema:
type: array
items:
type: string
'401':
description: Unauthorized
'403':
description: Forbidden
'404':
description: Not Found

View File

@ -1,6 +1,25 @@
post:
summary: Test
operationId: test
delete:
summary: Удаление записи из списка
operationId: removeRowFromListById
tags:
- test
- lists
parameters:
- name: id
type: string
in: query
responses:
'201':
description: Removed row from list
content:
application/json:
schema:
type: string
'401':
description: Unauthorized
'403':
description: Forbidden
'404':
description: Not Found

View File

@ -1,6 +1,32 @@
post:
summary: Test
operationId: test
summary: Загрузка данных из файла с фродовыми операциями
operationId: loadFraudTransactions
tags:
- test
- load-data
requestBody:
content:
multipart/form-data:
schema:
type: object
properties:
file:
in: formData
required: true
type: file
responses:
'201':
description: Load file with fraud data
content:
application/json:
schema:
type: string
'401':
description: Unauthorized
'403':
description: Forbidden
'404':
description: Not Found

View File

@ -1,6 +1,28 @@
post:
summary: Test
operationId: test
summary: Создание канала для нотификаций
operationId: createChannel
tags:
- test
- notification
requestBody:
content:
application/json:
schema:
$ref: '../../../components/schemas/Channel.yaml'
responses:
'201':
description: Created row in list
content:
application/json:
schema:
$ref: '../../../components/schemas/Channel.yaml'
'401':
description: Unauthorized
'403':
description: Forbidden
'404':
description: Not Found

View File

@ -1,6 +1,26 @@
post:
summary: Test
operationId: test
summary: Создание нотификации
operationId: createOrUpdateNotification
tags:
- test
- notification
requestBody:
content:
application/json:
schema:
$ref: '../../components/schemas/Notification.yaml'
responses:
'201':
description: Created row in list
content:
application/json:
schema:
$ref: '../../components/schemas/Notification.yaml'
'401':
description: Unauthorized
'403':
description: Forbidden
'404':
description: Not Found

View File

@ -1,6 +1,23 @@
post:
summary: Test
operationId: test
delete:
summary: Удалить нотификацию
operationId: removeByName
tags:
- test
- notification
parameters:
- name: name
type: string
in: query
responses:
'200':
description: Removed notification
'204':
description: No Content
'401':
description: Unauthorized
'403':
description: Forbidden
'404':
description: Not Found

View File

@ -1,6 +1,28 @@
post:
summary: Test
operationId: test
summary: Проверка нотификации
operationId: validateNotification
tags:
- test
- notification
requestBody:
content:
application/json:
schema:
$ref: '../../components/schemas/Notification.yaml'
responses:
'201':
description: Created row in list
content:
application/json:
schema:
$ref: '../../components/responses/ValidationResponse.yaml'
'401':
description: Unauthorized
'403':
description: Forbidden
'404':
description: Not Found

View File

@ -1,6 +1,28 @@
post:
summary: Test
operationId: test
get:
summary: Поиск привязок по умолчанию
operationId: filterDefaultReferences
tags:
- test
- reference
parameters:
- $ref: "#/components/parameters/lastId"
- $ref: "#/components/parameters/sortOrder"
- $ref: "#/components/parameters/searchValue"
- $ref: "#/components/parameters/sortBy"
- $ref: "#/components/parameters/sortFieldValue"
- $ref: "#/components/parameters/size"
responses:
'201':
description: Groups models
content:
application/json:
schema:
$ref: '../../../components/responses/FilterReferencesResponse.yaml'
'401':
description: Unauthorized
'403':
description: Forbidden
'404':
description: Not Found

View File

@ -1,6 +1,28 @@
post:
summary: Test
operationId: test
summary: Добавление новых привязок по умолчанию
operationId: insertDefaultReference
tags:
- test
- reference
requestBody:
content:
application/json:
schema:
$ref: '../../../components/schemas/PaymentReferenceModel.yaml'
responses:
'201':
description: Created new default references
content:
application/json:
schema:
type: string
'401':
description: Unauthorized
'403':
description: Forbidden
'404':
description: Not Found

View File

@ -1,6 +1,26 @@
delete:
summary: Test
operationId: test
summary: Удаление привязки по умолчанию
operationId: removeDefaultReference
tags:
- test
- reference
parameters:
- name: id
type: string
in: query
responses:
'201':
description: Removed default reference
content:
application/json:
schema:
type: string
'401':
description: Unauthorized
'403':
description: Forbidden
'404':
description: Not Found

View File

@ -1,6 +1,28 @@
post:
summary: Test
operationId: test
get:
summary: Поиск по привязкам
operationId: filterReferences
tags:
- test
- reference
parameters:
- $ref: "#/components/parameters/lastId"
- $ref: "#/components/parameters/sortOrder"
- $ref: "#/components/parameters/searchValue"
- $ref: "#/components/parameters/sortBy"
- $ref: "#/components/parameters/sortFieldValue"
- $ref: "#/components/parameters/size"
responses:
'201':
description: Groups models
content:
application/json:
schema:
$ref: '../../components/responses/FilterReferencesResponse.yaml'
'401':
description: Unauthorized
'403':
description: Forbidden
'404':
description: Not Found

View File

@ -1,6 +1,32 @@
post:
summary: Test
operationId: test
summary: Добавление новых привязок
operationId: insertReferences
tags:
- test
- reference
requestBody:
content:
application/json:
schema:
type: array
items:
$ref: '../../components/schemas/PaymentReferenceModel.yaml'
responses:
'201':
description: Created new references
content:
application/json:
schema:
type: array
items:
type: string
'401':
description: Unauthorized
'403':
description: Forbidden
'404':
description: Not Found

View File

@ -1,6 +1,26 @@
post:
summary: Test
operationId: test
delete:
summary: Удаление привязки
operationId: removeReferences
tags:
- test
- reference
parameters:
- name: id
type: string
in: query
responses:
'201':
description: Removed reference
content:
application/json:
schema:
type: string
'401':
description: Unauthorized
'403':
description: Forbidden
'404':
description: Not Found

View File

@ -1,6 +1,28 @@
post:
summary: Test
operationId: test
get:
summary: Поиск по шаблонов
operationId: filterTemplates
tags:
- test
- template
parameters:
- $ref: "#/components/parameters/lastId"
- $ref: "#/components/parameters/sortOrder"
- $ref: "#/components/parameters/searchValue"
- $ref: "#/components/parameters/sortBy"
- $ref: "#/components/parameters/sortFieldValue"
- $ref: "#/components/parameters/size"
responses:
'201':
description: Groups models
content:
application/json:
schema:
$ref: '../../components/responses/FilterTemplateResponse.yaml'
'401':
description: Unauthorized
'403':
description: Forbidden
'404':
description: Not Found

View File

@ -1,6 +1,24 @@
post:
summary: Test
operationId: test
get:
summary: Запросить список темплейтов
operationId: getTemplateNames
tags:
- test
- template
parameters:
- name: regexpName
type: string
in: query
responses:
'201':
description: Templates names
content:
application/json:
schema:
$ref: '../../components/responses/ListResponse.yaml'
'401':
description: Unauthorized
'403':
description: Forbidden
'404':
description: Not Found

View File

@ -1,6 +1,28 @@
post:
summary: Test
operationId: test
summary: Добавление нового темплейта
operationId: insertTemplate
tags:
- test
- template
requestBody:
content:
application/json:
schema:
$ref: '../../components/schemas/TemplateModel.yaml'
responses:
'201':
description: Created new template
content:
application/json:
schema:
$ref: '../../components/responses/CreateTemplateResponse.yaml'
'401':
description: Unauthorized
'403':
description: Forbidden
'404':
description: Not Found

View File

@ -1,6 +1,25 @@
post:
summary: Test
operationId: test
delete:
summary: Удаление темплейта
operationId: removeTemplateById
tags:
- test
- template
parameters:
- name: id
type: string
in: query
responses:
'201':
description: Removed template
content:
application/json:
schema:
type: string
'401':
description: Unauthorized
'403':
description: Forbidden
'404':
description: Not Found

View File

@ -1,6 +1,28 @@
post:
summary: Test
operationId: test
summary: Проверка темплейта
operationId: validateTemplate
tags:
- test
- template
requestBody:
content:
application/json:
schema:
$ref: '../../components/schemas/TemplateModel.yaml'
responses:
'201':
description: Created new template
content:
application/json:
schema:
$ref: '../../components/responses/CreateTemplateResponse.yaml'
'401':
description: Unauthorized
'403':
description: Forbidden
'404':
description: Not Found