From acbd6cdd0f83faa9f570c6ab2720aeb7870f51fb Mon Sep 17 00:00:00 2001 From: "k.struzhkin" Date: Wed, 7 Jul 2021 17:11:24 +0300 Subject: [PATCH] Add all without p2p --- .../requests/InsertRowToListRequest.yaml | 10 +++ .../responses/CreateTemplateResponse.yaml | 10 +++ .../components/responses/EmulateResponse.yaml | 8 ++ .../FilterGroupsReferencesResponse.yaml | 8 ++ .../responses/FilterGroupsResponse.yaml | 8 ++ .../responses/FilterReferencesResponse.yaml | 9 ++ .../responses/FilterTemplateResponse.yaml | 11 +++ .../responses/{audit => }/ListResponse.yaml | 2 +- .../responses/ValidateTemplatesResponse.yaml | 7 ++ .../responses/ValidationResponse.yaml | 10 +++ openapi/components/schemas/BankCard.yaml | 31 ------- openapi/components/schemas/CashInfo.yaml | 16 ---- openapi/components/schemas/Channel.yaml | 18 ++++ openapi/components/schemas/CommandAudit.yaml | 25 +++--- openapi/components/schemas/CountInfo.yaml | 11 +++ .../schemas/ErrorTemplateModel.yaml | 8 ++ openapi/components/schemas/GroupModel.yaml | 10 +++ .../schemas/GroupReferenceModel.yaml | 15 ++++ openapi/components/schemas/ListType.yaml | 7 ++ openapi/components/schemas/MerchantInfo.yaml | 12 --- openapi/components/schemas/Notification.yaml | 32 +++++++ openapi/components/schemas/P2pContext.yaml | 25 ------ .../components/schemas/P2pInspectRequest.yaml | 6 -- openapi/components/schemas/PayerType.yaml | 5 -- .../components/schemas/PaymentContext.yaml | 41 --------- .../components/schemas/PaymentCountInfo.yaml | 6 ++ .../schemas/PaymentInspectRequest.yaml | 6 -- .../components/schemas/PaymentListRecord.yaml | 10 +++ .../schemas/PaymentReferenceModel.yaml | 15 ++++ .../components/schemas/PriorityIdModel.yaml | 10 +++ openapi/components/schemas/RiskScore.yaml | 6 -- openapi/components/schemas/SortOrder.yaml | 6 ++ openapi/components/schemas/TemplateModel.yaml | 10 +++ openapi/components/schemas/UserInfo.yaml | 8 -- .../components/schemas/ValidationError.yaml | 4 + openapi/openapi.yaml | 89 +++++++++++++------ openapi/paths/audit/filterLogs.yaml | 27 ++---- openapi/paths/audit/getCommandTypes.yaml | 6 +- openapi/paths/audit/getObjectTypes.yaml | 6 +- .../getTemplatesFlowByPartyAndShop.yaml | 30 ++++++- openapi/paths/group/filterGroups.yaml | 29 +++++- openapi/paths/group/getGroupById.yaml | 27 +++++- openapi/paths/group/insertGroup.yaml | 27 +++++- .../reference/filterGroupsReferences.yaml | 35 +++++++- .../group/reference/getGroupReferences.yaml | 6 -- .../getGroupReferencesByGroupId.yaml | 6 -- .../group/reference/insertGroupReference.yaml | 6 -- .../reference/insertGroupReferences.yaml | 34 +++++++ .../reference/removeGroupReferenceById.yaml | 37 +++++++- openapi/paths/group/removeGroupById.yaml | 25 +++++- openapi/paths/lists/filterLists.yaml | 44 ++++++++- .../paths/lists/getAvailableListNames.yaml | 22 ++++- openapi/paths/lists/getListNames.yaml | 6 -- openapi/paths/lists/insertRowToList.yaml | 29 +++++- .../paths/lists/removeRowFromListById.yaml | 27 +++++- .../load-data/loadFraudTransactions.yaml | 32 ++++++- .../notification/channel/createChannel.yaml | 28 +++++- .../createOrUpdateNotification.yaml | 26 +++++- openapi/paths/notification/removeByName.yaml | 25 +++++- .../notification/validateNotification.yaml | 28 +++++- .../default/filterDefaultReferences.yaml | 30 ++++++- .../default/insertDefaultReference.yaml | 28 +++++- .../default/removeDefaultReference.yaml | 26 +++++- openapi/paths/reference/filterReferences.yaml | 30 ++++++- openapi/paths/reference/insertReferences.yaml | 32 ++++++- openapi/paths/reference/removeReferences.yaml | 28 +++++- openapi/paths/template/filterTemplates.yaml | 30 ++++++- openapi/paths/template/getTemplateNames.yaml | 26 +++++- openapi/paths/template/insertTemplate.yaml | 28 +++++- .../paths/template/removeTemplateById.yaml | 27 +++++- openapi/paths/template/validateTemplate.yaml | 28 +++++- 71 files changed, 1048 insertions(+), 348 deletions(-) create mode 100644 openapi/components/requests/InsertRowToListRequest.yaml create mode 100644 openapi/components/responses/CreateTemplateResponse.yaml create mode 100644 openapi/components/responses/EmulateResponse.yaml create mode 100644 openapi/components/responses/FilterGroupsReferencesResponse.yaml create mode 100644 openapi/components/responses/FilterGroupsResponse.yaml create mode 100644 openapi/components/responses/FilterReferencesResponse.yaml create mode 100644 openapi/components/responses/FilterTemplateResponse.yaml rename openapi/components/responses/{audit => }/ListResponse.yaml (56%) create mode 100644 openapi/components/responses/ValidateTemplatesResponse.yaml create mode 100644 openapi/components/responses/ValidationResponse.yaml delete mode 100644 openapi/components/schemas/BankCard.yaml delete mode 100644 openapi/components/schemas/CashInfo.yaml create mode 100644 openapi/components/schemas/Channel.yaml create mode 100644 openapi/components/schemas/CountInfo.yaml create mode 100644 openapi/components/schemas/ErrorTemplateModel.yaml create mode 100644 openapi/components/schemas/GroupModel.yaml create mode 100644 openapi/components/schemas/GroupReferenceModel.yaml create mode 100644 openapi/components/schemas/ListType.yaml delete mode 100644 openapi/components/schemas/MerchantInfo.yaml create mode 100644 openapi/components/schemas/Notification.yaml delete mode 100644 openapi/components/schemas/P2pContext.yaml delete mode 100644 openapi/components/schemas/P2pInspectRequest.yaml delete mode 100644 openapi/components/schemas/PayerType.yaml delete mode 100644 openapi/components/schemas/PaymentContext.yaml create mode 100644 openapi/components/schemas/PaymentCountInfo.yaml delete mode 100644 openapi/components/schemas/PaymentInspectRequest.yaml create mode 100644 openapi/components/schemas/PaymentListRecord.yaml create mode 100644 openapi/components/schemas/PaymentReferenceModel.yaml create mode 100644 openapi/components/schemas/PriorityIdModel.yaml delete mode 100644 openapi/components/schemas/RiskScore.yaml create mode 100644 openapi/components/schemas/SortOrder.yaml create mode 100644 openapi/components/schemas/TemplateModel.yaml delete mode 100644 openapi/components/schemas/UserInfo.yaml create mode 100644 openapi/components/schemas/ValidationError.yaml delete mode 100644 openapi/paths/group/reference/getGroupReferences.yaml delete mode 100644 openapi/paths/group/reference/getGroupReferencesByGroupId.yaml delete mode 100644 openapi/paths/group/reference/insertGroupReference.yaml create mode 100644 openapi/paths/group/reference/insertGroupReferences.yaml delete mode 100644 openapi/paths/lists/getListNames.yaml diff --git a/openapi/components/requests/InsertRowToListRequest.yaml b/openapi/components/requests/InsertRowToListRequest.yaml new file mode 100644 index 0000000..74a1666 --- /dev/null +++ b/openapi/components/requests/InsertRowToListRequest.yaml @@ -0,0 +1,10 @@ +type: object +required: + - result +properties: + records: + type: array + items: + $ref: '../schemas/PaymentCountInfo.yaml' + listType: + $ref: '../schemas/ListType.yaml' diff --git a/openapi/components/responses/CreateTemplateResponse.yaml b/openapi/components/responses/CreateTemplateResponse.yaml new file mode 100644 index 0000000..4802074 --- /dev/null +++ b/openapi/components/responses/CreateTemplateResponse.yaml @@ -0,0 +1,10 @@ +type: object +properties: + errors: + type: array + items: + type: string + id: + type: string + template: + type: string diff --git a/openapi/components/responses/EmulateResponse.yaml b/openapi/components/responses/EmulateResponse.yaml new file mode 100644 index 0000000..af8dbec --- /dev/null +++ b/openapi/components/responses/EmulateResponse.yaml @@ -0,0 +1,8 @@ +type: object +required: + - result +properties: + result: + type: array + items: + $ref: '../schemas/TemplateModel.yaml' diff --git a/openapi/components/responses/FilterGroupsReferencesResponse.yaml b/openapi/components/responses/FilterGroupsReferencesResponse.yaml new file mode 100644 index 0000000..dbb035b --- /dev/null +++ b/openapi/components/responses/FilterGroupsReferencesResponse.yaml @@ -0,0 +1,8 @@ +type: object +required: + - result +properties: + result: + type: array + items: + $ref: '../schemas/GroupReferenceModel.yaml' diff --git a/openapi/components/responses/FilterGroupsResponse.yaml b/openapi/components/responses/FilterGroupsResponse.yaml new file mode 100644 index 0000000..9881ccc --- /dev/null +++ b/openapi/components/responses/FilterGroupsResponse.yaml @@ -0,0 +1,8 @@ +type: object +required: + - result +properties: + result: + type: array + items: + $ref: '../schemas/GroupModel.yaml' diff --git a/openapi/components/responses/FilterReferencesResponse.yaml b/openapi/components/responses/FilterReferencesResponse.yaml new file mode 100644 index 0000000..e3a1071 --- /dev/null +++ b/openapi/components/responses/FilterReferencesResponse.yaml @@ -0,0 +1,9 @@ +type: object +properties: + count: + type: integer + format: int32 + result: + type: array + items: + $ref: '../schemas/PaymentReferenceModel.yaml' diff --git a/openapi/components/responses/FilterTemplateResponse.yaml b/openapi/components/responses/FilterTemplateResponse.yaml new file mode 100644 index 0000000..e226150 --- /dev/null +++ b/openapi/components/responses/FilterTemplateResponse.yaml @@ -0,0 +1,11 @@ +type: object +required: + - result +properties: + count: + type: integer + format: int32 + result: + type: array + items: + $ref: '../schemas/TemplateModel.yaml' diff --git a/openapi/components/responses/audit/ListResponse.yaml b/openapi/components/responses/ListResponse.yaml similarity index 56% rename from openapi/components/responses/audit/ListResponse.yaml rename to openapi/components/responses/ListResponse.yaml index f851b61..8acb68d 100644 --- a/openapi/components/responses/audit/ListResponse.yaml +++ b/openapi/components/responses/ListResponse.yaml @@ -3,4 +3,4 @@ required: - result properties: result: - $ref: '../../schemas/ArrayResult.yaml' + $ref: '../schemas/ArrayResult.yaml' diff --git a/openapi/components/responses/ValidateTemplatesResponse.yaml b/openapi/components/responses/ValidateTemplatesResponse.yaml new file mode 100644 index 0000000..5508764 --- /dev/null +++ b/openapi/components/responses/ValidateTemplatesResponse.yaml @@ -0,0 +1,7 @@ +type: object +properties: + validateResults: + type: array + items: + $ref: '../schemas/ErrorTemplateModel.yaml' + diff --git a/openapi/components/responses/ValidationResponse.yaml b/openapi/components/responses/ValidationResponse.yaml new file mode 100644 index 0000000..d1311a9 --- /dev/null +++ b/openapi/components/responses/ValidationResponse.yaml @@ -0,0 +1,10 @@ +type: object +required: + - result +properties: + errors: + type: array + items: + $ref: '../schemas/ValidationError.yaml' + result: + type: string diff --git a/openapi/components/schemas/BankCard.yaml b/openapi/components/schemas/BankCard.yaml deleted file mode 100644 index 63fd209..0000000 --- a/openapi/components/schemas/BankCard.yaml +++ /dev/null @@ -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 diff --git a/openapi/components/schemas/CashInfo.yaml b/openapi/components/schemas/CashInfo.yaml deleted file mode 100644 index 04364d3..0000000 --- a/openapi/components/schemas/CashInfo.yaml +++ /dev/null @@ -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}$' - diff --git a/openapi/components/schemas/Channel.yaml b/openapi/components/schemas/Channel.yaml new file mode 100644 index 0000000..3830ded --- /dev/null +++ b/openapi/components/schemas/Channel.yaml @@ -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 diff --git a/openapi/components/schemas/CommandAudit.yaml b/openapi/components/schemas/CommandAudit.yaml index 40a72ab..72e867c 100644 --- a/openapi/components/schemas/CommandAudit.yaml +++ b/openapi/components/schemas/CommandAudit.yaml @@ -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 diff --git a/openapi/components/schemas/CountInfo.yaml b/openapi/components/schemas/CountInfo.yaml new file mode 100644 index 0000000..3369d64 --- /dev/null +++ b/openapi/components/schemas/CountInfo.yaml @@ -0,0 +1,11 @@ +type: object +properties: + count: + type: integer + format: int64 + endCountTime: + type: string + format: date-time + startCountTime: + type: string + format: date-time diff --git a/openapi/components/schemas/ErrorTemplateModel.yaml b/openapi/components/schemas/ErrorTemplateModel.yaml new file mode 100644 index 0000000..ad0986a --- /dev/null +++ b/openapi/components/schemas/ErrorTemplateModel.yaml @@ -0,0 +1,8 @@ +type: object +properties: + errors: + type: array + items: + type: string + id: + type: string diff --git a/openapi/components/schemas/GroupModel.yaml b/openapi/components/schemas/GroupModel.yaml new file mode 100644 index 0000000..7a687e6 --- /dev/null +++ b/openapi/components/schemas/GroupModel.yaml @@ -0,0 +1,10 @@ +type: object +properties: + groupId: + type: string + modifiedByUser: + type: string + priorityTemplates: + type: array + items: + $ref: './PriorityIdModel.yaml' diff --git a/openapi/components/schemas/GroupReferenceModel.yaml b/openapi/components/schemas/GroupReferenceModel.yaml new file mode 100644 index 0000000..b878163 --- /dev/null +++ b/openapi/components/schemas/GroupReferenceModel.yaml @@ -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 diff --git a/openapi/components/schemas/ListType.yaml b/openapi/components/schemas/ListType.yaml new file mode 100644 index 0000000..9720e8f --- /dev/null +++ b/openapi/components/schemas/ListType.yaml @@ -0,0 +1,7 @@ +name: listType +type: string +enum: + - black + - white + - grey + - naming diff --git a/openapi/components/schemas/MerchantInfo.yaml b/openapi/components/schemas/MerchantInfo.yaml deleted file mode 100644 index 560269a..0000000 --- a/openapi/components/schemas/MerchantInfo.yaml +++ /dev/null @@ -1,12 +0,0 @@ -description: Информация о мерчанте -required: - - shopId - - partyId -properties: - shopId: - description: Идентификатор магазина - type: string - partyId: - description: Идентификатор пати - type: string - diff --git a/openapi/components/schemas/Notification.yaml b/openapi/components/schemas/Notification.yaml new file mode 100644 index 0000000..86f0efa --- /dev/null +++ b/openapi/components/schemas/Notification.yaml @@ -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 diff --git a/openapi/components/schemas/P2pContext.yaml b/openapi/components/schemas/P2pContext.yaml deleted file mode 100644 index c5c8509..0000000 --- a/openapi/components/schemas/P2pContext.yaml +++ /dev/null @@ -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 diff --git a/openapi/components/schemas/P2pInspectRequest.yaml b/openapi/components/schemas/P2pInspectRequest.yaml deleted file mode 100644 index 9d71264..0000000 --- a/openapi/components/schemas/P2pInspectRequest.yaml +++ /dev/null @@ -1,6 +0,0 @@ -type: object -required: - - context -properties: - context: - $ref: './P2pContext.yaml' diff --git a/openapi/components/schemas/PayerType.yaml b/openapi/components/schemas/PayerType.yaml deleted file mode 100644 index 76d4e07..0000000 --- a/openapi/components/schemas/PayerType.yaml +++ /dev/null @@ -1,5 +0,0 @@ -type: string -enum: - - 'payment_resource' - - 'customer' - - 'recurrent' diff --git a/openapi/components/schemas/PaymentContext.yaml b/openapi/components/schemas/PaymentContext.yaml deleted file mode 100644 index 21ecccb..0000000 --- a/openapi/components/schemas/PaymentContext.yaml +++ /dev/null @@ -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 diff --git a/openapi/components/schemas/PaymentCountInfo.yaml b/openapi/components/schemas/PaymentCountInfo.yaml new file mode 100644 index 0000000..7d2cae7 --- /dev/null +++ b/openapi/components/schemas/PaymentCountInfo.yaml @@ -0,0 +1,6 @@ +type: object +properties: + countInfo: + $ref: './CountInfo.yaml' + listRecord: + $ref: './PaymentListRecord.yaml' diff --git a/openapi/components/schemas/PaymentInspectRequest.yaml b/openapi/components/schemas/PaymentInspectRequest.yaml deleted file mode 100644 index a96fb2b..0000000 --- a/openapi/components/schemas/PaymentInspectRequest.yaml +++ /dev/null @@ -1,6 +0,0 @@ -type: object -required: - - context -properties: - context: - $ref: './PaymentContext.yaml' diff --git a/openapi/components/schemas/PaymentListRecord.yaml b/openapi/components/schemas/PaymentListRecord.yaml new file mode 100644 index 0000000..60bb5ba --- /dev/null +++ b/openapi/components/schemas/PaymentListRecord.yaml @@ -0,0 +1,10 @@ +type: object +properties: + listName: + type: string + partyId: + type: string + shopId: + type: string + value: + type: string diff --git a/openapi/components/schemas/PaymentReferenceModel.yaml b/openapi/components/schemas/PaymentReferenceModel.yaml new file mode 100644 index 0000000..0bf9faf --- /dev/null +++ b/openapi/components/schemas/PaymentReferenceModel.yaml @@ -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 diff --git a/openapi/components/schemas/PriorityIdModel.yaml b/openapi/components/schemas/PriorityIdModel.yaml new file mode 100644 index 0000000..86dd0f8 --- /dev/null +++ b/openapi/components/schemas/PriorityIdModel.yaml @@ -0,0 +1,10 @@ +type: object +properties: + id: + type: string + lastUpdateTime: + type: string + format: date-time + priority: + type: integer + format: int64 diff --git a/openapi/components/schemas/RiskScore.yaml b/openapi/components/schemas/RiskScore.yaml deleted file mode 100644 index c173714..0000000 --- a/openapi/components/schemas/RiskScore.yaml +++ /dev/null @@ -1,6 +0,0 @@ -type: string -enum: - - 'low' - - 'high' - - 'fatal' -default: 'high' diff --git a/openapi/components/schemas/SortOrder.yaml b/openapi/components/schemas/SortOrder.yaml new file mode 100644 index 0000000..03a43b2 --- /dev/null +++ b/openapi/components/schemas/SortOrder.yaml @@ -0,0 +1,6 @@ +name: sortOrder +type: string +enum: + - ASC + - DESC + - DEFAULT diff --git a/openapi/components/schemas/TemplateModel.yaml b/openapi/components/schemas/TemplateModel.yaml new file mode 100644 index 0000000..5307dfb --- /dev/null +++ b/openapi/components/schemas/TemplateModel.yaml @@ -0,0 +1,10 @@ +type: object +properties: + id: + type: string + lastUpdateDate: + type: string + modifiedByUser: + type: string + template: + type: string diff --git a/openapi/components/schemas/UserInfo.yaml b/openapi/components/schemas/UserInfo.yaml deleted file mode 100644 index 8e79d05..0000000 --- a/openapi/components/schemas/UserInfo.yaml +++ /dev/null @@ -1,8 +0,0 @@ -description: Информацмя о клиенте -properties: - ip: - type: string - email: - type: string - fingerprint: - type: string diff --git a/openapi/components/schemas/ValidationError.yaml b/openapi/components/schemas/ValidationError.yaml new file mode 100644 index 0000000..2351a16 --- /dev/null +++ b/openapi/components/schemas/ValidationError.yaml @@ -0,0 +1,4 @@ +type: object +properties: + errorReason: + type: string diff --git a/openapi/openapi.yaml b/openapi/openapi.yaml index 679aedc..5264bc4 100644 --- a/openapi/openapi.yaml +++ b/openapi/openapi.yaml @@ -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 diff --git a/openapi/paths/audit/filterLogs.yaml b/openapi/paths/audit/filterLogs.yaml index b1958fa..2f0661e 100644 --- a/openapi/paths/audit/filterLogs.yaml +++ b/openapi/paths/audit/filterLogs.yaml @@ -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': diff --git a/openapi/paths/audit/getCommandTypes.yaml b/openapi/paths/audit/getCommandTypes.yaml index d9557f6..690c8b3 100644 --- a/openapi/paths/audit/getCommandTypes.yaml +++ b/openapi/paths/audit/getCommandTypes.yaml @@ -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': diff --git a/openapi/paths/audit/getObjectTypes.yaml b/openapi/paths/audit/getObjectTypes.yaml index fd54174..73315876 100644 --- a/openapi/paths/audit/getObjectTypes.yaml +++ b/openapi/paths/audit/getObjectTypes.yaml @@ -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': diff --git a/openapi/paths/emulation/getTemplatesFlowByPartyAndShop.yaml b/openapi/paths/emulation/getTemplatesFlowByPartyAndShop.yaml index c055700..c851efd 100644 --- a/openapi/paths/emulation/getTemplatesFlowByPartyAndShop.yaml +++ b/openapi/paths/emulation/getTemplatesFlowByPartyAndShop.yaml @@ -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 + diff --git a/openapi/paths/group/filterGroups.yaml b/openapi/paths/group/filterGroups.yaml index c055700..57f1619 100644 --- a/openapi/paths/group/filterGroups.yaml +++ b/openapi/paths/group/filterGroups.yaml @@ -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 + diff --git a/openapi/paths/group/getGroupById.yaml b/openapi/paths/group/getGroupById.yaml index c055700..9041855 100644 --- a/openapi/paths/group/getGroupById.yaml +++ b/openapi/paths/group/getGroupById.yaml @@ -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 + diff --git a/openapi/paths/group/insertGroup.yaml b/openapi/paths/group/insertGroup.yaml index c055700..a680acd 100644 --- a/openapi/paths/group/insertGroup.yaml +++ b/openapi/paths/group/insertGroup.yaml @@ -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 + diff --git a/openapi/paths/group/reference/filterGroupsReferences.yaml b/openapi/paths/group/reference/filterGroupsReferences.yaml index c055700..42b0c6c 100644 --- a/openapi/paths/group/reference/filterGroupsReferences.yaml +++ b/openapi/paths/group/reference/filterGroupsReferences.yaml @@ -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 + diff --git a/openapi/paths/group/reference/getGroupReferences.yaml b/openapi/paths/group/reference/getGroupReferences.yaml deleted file mode 100644 index c055700..0000000 --- a/openapi/paths/group/reference/getGroupReferences.yaml +++ /dev/null @@ -1,6 +0,0 @@ -post: - summary: Test - operationId: test - tags: - - test - diff --git a/openapi/paths/group/reference/getGroupReferencesByGroupId.yaml b/openapi/paths/group/reference/getGroupReferencesByGroupId.yaml deleted file mode 100644 index c055700..0000000 --- a/openapi/paths/group/reference/getGroupReferencesByGroupId.yaml +++ /dev/null @@ -1,6 +0,0 @@ -post: - summary: Test - operationId: test - tags: - - test - diff --git a/openapi/paths/group/reference/insertGroupReference.yaml b/openapi/paths/group/reference/insertGroupReference.yaml deleted file mode 100644 index c055700..0000000 --- a/openapi/paths/group/reference/insertGroupReference.yaml +++ /dev/null @@ -1,6 +0,0 @@ -post: - summary: Test - operationId: test - tags: - - test - diff --git a/openapi/paths/group/reference/insertGroupReferences.yaml b/openapi/paths/group/reference/insertGroupReferences.yaml new file mode 100644 index 0000000..3b35a62 --- /dev/null +++ b/openapi/paths/group/reference/insertGroupReferences.yaml @@ -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 + + diff --git a/openapi/paths/group/reference/removeGroupReferenceById.yaml b/openapi/paths/group/reference/removeGroupReferenceById.yaml index c055700..ee1ab1e 100644 --- a/openapi/paths/group/reference/removeGroupReferenceById.yaml +++ b/openapi/paths/group/reference/removeGroupReferenceById.yaml @@ -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 + diff --git a/openapi/paths/group/removeGroupById.yaml b/openapi/paths/group/removeGroupById.yaml index 0707f69..d7414c3 100644 --- a/openapi/paths/group/removeGroupById.yaml +++ b/openapi/paths/group/removeGroupById.yaml @@ -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 + diff --git a/openapi/paths/lists/filterLists.yaml b/openapi/paths/lists/filterLists.yaml index c055700..5b17aec 100644 --- a/openapi/paths/lists/filterLists.yaml +++ b/openapi/paths/lists/filterLists.yaml @@ -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 + diff --git a/openapi/paths/lists/getAvailableListNames.yaml b/openapi/paths/lists/getAvailableListNames.yaml index c055700..7ee32d1 100644 --- a/openapi/paths/lists/getAvailableListNames.yaml +++ b/openapi/paths/lists/getAvailableListNames.yaml @@ -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 diff --git a/openapi/paths/lists/getListNames.yaml b/openapi/paths/lists/getListNames.yaml deleted file mode 100644 index c055700..0000000 --- a/openapi/paths/lists/getListNames.yaml +++ /dev/null @@ -1,6 +0,0 @@ -post: - summary: Test - operationId: test - tags: - - test - diff --git a/openapi/paths/lists/insertRowToList.yaml b/openapi/paths/lists/insertRowToList.yaml index c055700..1d671dd 100644 --- a/openapi/paths/lists/insertRowToList.yaml +++ b/openapi/paths/lists/insertRowToList.yaml @@ -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 + diff --git a/openapi/paths/lists/removeRowFromListById.yaml b/openapi/paths/lists/removeRowFromListById.yaml index c055700..0726c8b 100644 --- a/openapi/paths/lists/removeRowFromListById.yaml +++ b/openapi/paths/lists/removeRowFromListById.yaml @@ -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 + diff --git a/openapi/paths/load-data/loadFraudTransactions.yaml b/openapi/paths/load-data/loadFraudTransactions.yaml index c055700..65b2aaf 100644 --- a/openapi/paths/load-data/loadFraudTransactions.yaml +++ b/openapi/paths/load-data/loadFraudTransactions.yaml @@ -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 + diff --git a/openapi/paths/notification/channel/createChannel.yaml b/openapi/paths/notification/channel/createChannel.yaml index c055700..246c106 100644 --- a/openapi/paths/notification/channel/createChannel.yaml +++ b/openapi/paths/notification/channel/createChannel.yaml @@ -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 + diff --git a/openapi/paths/notification/createOrUpdateNotification.yaml b/openapi/paths/notification/createOrUpdateNotification.yaml index c055700..eb41e10 100644 --- a/openapi/paths/notification/createOrUpdateNotification.yaml +++ b/openapi/paths/notification/createOrUpdateNotification.yaml @@ -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 + diff --git a/openapi/paths/notification/removeByName.yaml b/openapi/paths/notification/removeByName.yaml index c055700..7062124 100644 --- a/openapi/paths/notification/removeByName.yaml +++ b/openapi/paths/notification/removeByName.yaml @@ -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 + diff --git a/openapi/paths/notification/validateNotification.yaml b/openapi/paths/notification/validateNotification.yaml index c055700..3aae644 100644 --- a/openapi/paths/notification/validateNotification.yaml +++ b/openapi/paths/notification/validateNotification.yaml @@ -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 + diff --git a/openapi/paths/reference/default/filterDefaultReferences.yaml b/openapi/paths/reference/default/filterDefaultReferences.yaml index c055700..b456479 100644 --- a/openapi/paths/reference/default/filterDefaultReferences.yaml +++ b/openapi/paths/reference/default/filterDefaultReferences.yaml @@ -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 + diff --git a/openapi/paths/reference/default/insertDefaultReference.yaml b/openapi/paths/reference/default/insertDefaultReference.yaml index c055700..6c3feed 100644 --- a/openapi/paths/reference/default/insertDefaultReference.yaml +++ b/openapi/paths/reference/default/insertDefaultReference.yaml @@ -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 + diff --git a/openapi/paths/reference/default/removeDefaultReference.yaml b/openapi/paths/reference/default/removeDefaultReference.yaml index 0707f69..530530a 100644 --- a/openapi/paths/reference/default/removeDefaultReference.yaml +++ b/openapi/paths/reference/default/removeDefaultReference.yaml @@ -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 + diff --git a/openapi/paths/reference/filterReferences.yaml b/openapi/paths/reference/filterReferences.yaml index c055700..918b45b 100644 --- a/openapi/paths/reference/filterReferences.yaml +++ b/openapi/paths/reference/filterReferences.yaml @@ -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 + diff --git a/openapi/paths/reference/insertReferences.yaml b/openapi/paths/reference/insertReferences.yaml index c055700..054b78d 100644 --- a/openapi/paths/reference/insertReferences.yaml +++ b/openapi/paths/reference/insertReferences.yaml @@ -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 + diff --git a/openapi/paths/reference/removeReferences.yaml b/openapi/paths/reference/removeReferences.yaml index c055700..e154c3d 100644 --- a/openapi/paths/reference/removeReferences.yaml +++ b/openapi/paths/reference/removeReferences.yaml @@ -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 + diff --git a/openapi/paths/template/filterTemplates.yaml b/openapi/paths/template/filterTemplates.yaml index c055700..0968194 100644 --- a/openapi/paths/template/filterTemplates.yaml +++ b/openapi/paths/template/filterTemplates.yaml @@ -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 + diff --git a/openapi/paths/template/getTemplateNames.yaml b/openapi/paths/template/getTemplateNames.yaml index c055700..4ae2540 100644 --- a/openapi/paths/template/getTemplateNames.yaml +++ b/openapi/paths/template/getTemplateNames.yaml @@ -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 diff --git a/openapi/paths/template/insertTemplate.yaml b/openapi/paths/template/insertTemplate.yaml index c055700..69c7e43 100644 --- a/openapi/paths/template/insertTemplate.yaml +++ b/openapi/paths/template/insertTemplate.yaml @@ -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 + diff --git a/openapi/paths/template/removeTemplateById.yaml b/openapi/paths/template/removeTemplateById.yaml index c055700..410026f 100644 --- a/openapi/paths/template/removeTemplateById.yaml +++ b/openapi/paths/template/removeTemplateById.yaml @@ -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 + diff --git a/openapi/paths/template/validateTemplate.yaml b/openapi/paths/template/validateTemplate.yaml index c055700..52974e5 100644 --- a/openapi/paths/template/validateTemplate.yaml +++ b/openapi/paths/template/validateTemplate.yaml @@ -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 +