mirror of
https://github.com/valitydev/swag-payments.git
synced 2024-11-06 17:45:24 +00:00
add reportType parameter, move request params to body
This commit is contained in:
parent
4f519abd22
commit
6a3685d9c0
@ -1,37 +1,38 @@
|
||||
type: object
|
||||
allOf:
|
||||
- type: object
|
||||
required:
|
||||
- id
|
||||
- createdAt
|
||||
- fromTime
|
||||
- toTime
|
||||
- type
|
||||
- files
|
||||
properties:
|
||||
id:
|
||||
description: Идентификатор отчета
|
||||
type: integer
|
||||
format: int64
|
||||
createdAt:
|
||||
description: Дата и время создания
|
||||
type: string
|
||||
format: date-time
|
||||
fromTime:
|
||||
description: Дата и время начала периода
|
||||
type: string
|
||||
format: date-time
|
||||
toTime:
|
||||
description: Дата и время конца периода
|
||||
type: string
|
||||
format: date-time
|
||||
type:
|
||||
description: Тип отчета
|
||||
type: string
|
||||
enum:
|
||||
- provisionOfService
|
||||
- paymentRegistry
|
||||
files:
|
||||
type: array
|
||||
items:
|
||||
$ref: '#/definitions/FileMeta'
|
||||
required:
|
||||
- id
|
||||
- createdAt
|
||||
- fromTime
|
||||
- toTime
|
||||
- type
|
||||
- files
|
||||
properties:
|
||||
id:
|
||||
description: Идентификатор отчета
|
||||
type: integer
|
||||
format: int64
|
||||
readOnly: true
|
||||
createdAt:
|
||||
description: Дата и время создания
|
||||
type: string
|
||||
format: date-time
|
||||
readOnly: true
|
||||
fromTime:
|
||||
description: Дата и время начала периода
|
||||
type: string
|
||||
format: date-time
|
||||
toTime:
|
||||
description: Дата и время конца периода
|
||||
type: string
|
||||
format: date-time
|
||||
type:
|
||||
description: Тип отчета
|
||||
type: string
|
||||
enum:
|
||||
- provisionOfService
|
||||
- paymentRegistry
|
||||
files:
|
||||
type: array
|
||||
items:
|
||||
$ref: '#/definitions/FileMeta'
|
||||
readOnly: true
|
||||
|
@ -6,8 +6,12 @@ post:
|
||||
parameters:
|
||||
- $ref: '#/parameters/requestID'
|
||||
- $ref: '#/parameters/shopID'
|
||||
- $ref: '#/parameters/fromTime'
|
||||
- $ref: '#/parameters/toTime'
|
||||
- name: createReport
|
||||
in: body
|
||||
description: Параметры генерации отчета
|
||||
required: true
|
||||
schema:
|
||||
$ref: '#/definitions/Report'
|
||||
responses:
|
||||
'201':
|
||||
description: Отчет создан
|
||||
|
Loading…
Reference in New Issue
Block a user