swag-payments/spec/paths/shops@{shopID}@reports@{reportID}@files@{fileID}@download.yaml
2018-10-22 10:08:37 +03:00

41 lines
1.0 KiB
YAML

get:
description: Скачать файл
tags:
- Reports
operationId: downloadFile
parameters:
- $ref: '#/parameters/requestID'
- $ref: '#/parameters/deadline'
- $ref: '#/parameters/shopID'
- $ref: '#/parameters/reportID'
- $ref: '#/parameters/fileID'
responses:
'303':
description: See Other
headers:
Location:
type: "string"
description: URL файла
'404':
$ref: '#/responses/NotFound'
'401':
$ref: '#/responses/Unauthorized'
'400':
description: Ошибочные данные для скачинвания
schema:
type: object
required:
- code
- message
properties:
code:
description: |
[Код ошибки](#tag/Error-Codes)
type: string
enum:
- invalidRequest
- invalidDeadline
message:
description: Человекочитаемое описание ошибки
type: string