Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ---
- swagger: '2.0'
- info:
- version: 1.0.0
- title: Web AutoPrice Service
- description: |
- #### API взаимодействия с сервисом Веб-АвтоПрайс.
- schemes:
- - http
- host: wap-server.loc
- basePath: /api/v1
- securityDefinitions:
- token:
- type: apiKey
- in: query
- name: token
- security:
- - token: []
- paths:
- /selfprices:
- get:
- tags: ["Selprice"]
- summary: список конфигураций
- # Expected responses for this operation:
- responses:
- # Response code
- 200:
- description: Массив конфигураций
- schema:
- type: array
- items:
- $ref: '#/definitions/SelfpriceFull'
- /selfprice/{id}:
- parameters:
- - name: id
- in: path
- description: ID конфигурации
- type: string
- required: true
- get:
- tags: ["Selprice"]
- summary: получение конфигурации по ID
- responses:
- 200:
- description: объект конфигурации
- schema:
- $ref: '#/definitions/SelfpriceFull'
- put:
- tags: ["Selprice"]
- summary: изменение конфигурации по ID
- responses:
- 201:
- description: изменение записи
- parameters:
- -
- in: body
- name: body
- required: true
- description: сущность конфигурации
- schema:
- $ref: '#/definitions/Selfprice'
- definitions:
- SelfpriceFull:
- type: object
- description: полная конфигурация правила загрузки прайса
- allOf:
- - $ref: '#/definitions/Selfprice'
- - type: object
- properties:
- Id:
- type: integer
- description: ключ
- Selfprice:
- type: object
- description: конфигурация правила загрузки прайса
- properties:
- File:
- type: string
- description: наименование файла
- PrvId:
- type: integer
- description: ID поставщика
- Username:
- type: string
- description: имя пользователя создавшей запись
- RequestState:
- type: integer
- description: состояние
- default: 0
- AutoType:
- type: string
- description: тип автоматической загрузки
- enum: [none,url,ftp,mail]
- AutoUrl:
- type: string
- description: url для скачки файла
- NewFilename:
- type: string
- description: Новое наименование файла при скачке по url
- AutoFtpServer:
- type: string
- description: фтп сервер
- AutoFtpPort:
- type: string
- description: фтп порт
- AutoFtpUser:
- type: string
- description: фтп login
- AutoFtpPass:
- type: string
- description: фтп пароль
- AutoFtpFile:
- type: string
- description: наименование файла который нужно забрать по фтп
- Confirm:
- type: boolean
- description: Автозагрузка прайса через планировщик
- Fromaddress:
- type: string
- description: адрес from для почтового сервера
- ExactMatch:
- type: string
- description: прямое указание файла (будет игнорироваться рег.выражение)
- enum: ['N','Y']
- SubjectRule:
- type: string
- description: поиск по теме письма
- PricefileRule:
- type: string
- description: правило поиска письма, можно использовать рег.выражения
- Encoding:
- type: string
- description: кодировка файла
- IntervalUpdate:
- type: integer
- description: период обновления в часах, 1 - 1 раз в час, 6 - 1 раз в 6 часов
- Maildir:
- type: string
- description: каталог на сервере почты для поиска писем, по умолчанию Входящие
- FileInArchive:
- type: string
- description: наименованеи файла в случае нахождения нескольких в архиве
- PriceType:
- type: string
- description: тип конфигуратора прайса, P - прайсы N - номенклатура, C - кроссы
- enum: ['P','N','C','PN','PNC','NC','PC']
- DatafileId:
- type: number
- description: ID файла из бд автопрайса
- DatalistLoadMode:
- type: string
- description: режим загрузки номенклатуры
- UserId:
- type: integer
- description: ID клиента(пользователя серверисом)
- FileSize:
- type: integer
- description: Размер загруженного файла в байтах
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement