From d148d025c8e72849033a45637469711d7b98b257 Mon Sep 17 00:00:00 2001 From: Toporkov Igor Date: Mon, 3 Aug 2020 14:17:21 +0300 Subject: [PATCH] ANAPI-22: Cancel Reports (#32) * Create cancel report api handle * Add comment about cancel restrictions * Reword description to comply with capi --- spec/paths/reports@{reportID}@cancel.yaml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 spec/paths/reports@{reportID}@cancel.yaml diff --git a/spec/paths/reports@{reportID}@cancel.yaml b/spec/paths/reports@{reportID}@cancel.yaml new file mode 100644 index 0000000..edd843e --- /dev/null +++ b/spec/paths/reports@{reportID}@cancel.yaml @@ -0,0 +1,18 @@ +post: + description: Отменить указанный отчет. Отчеты типа `provisionOfService` отменить нельзя + tags: + - Reports + operationId: cancelReport + parameters: + - $ref: '#/parameters/requestID' + - $ref: '#/parameters/deadline' + - $ref: '#/parameters/reportID' + responses: + '202': + description: Запрос на отмену отчета принят + '404': + $ref: '#/responses/NotFound' + '401': + $ref: '#/responses/Unauthorized' + '400': + $ref: '#/responses/DefaultLogicError'