csv only for dev/admin, mail change notice
This commit is contained in:
@ -40,12 +40,6 @@
|
||||
schema:
|
||||
type: string
|
||||
example: color-asc
|
||||
- name: csv
|
||||
description: output as csv
|
||||
in: query
|
||||
schema:
|
||||
type: boolean
|
||||
example: false
|
||||
- name: fields[]
|
||||
description: "the fields to include in the output as array, defaults to ['_id', 'number', 'type',
|
||||
'batch', 'material_id', 'color', 'condition', 'note_id', 'user_id', 'added']"
|
||||
@ -57,7 +51,8 @@
|
||||
example: ['number', 'batch']
|
||||
- name: filters[]
|
||||
description: "the filters to apply as an array of URIComponent encoded objects in the form {mode:
|
||||
'eq/ne/lt/lte/gt/gte/in/nin/stringin', field: 'material.m', values: ['15']} using encodeURIComponent(JSON.stringify({}))"
|
||||
'eq/ne/lt/lte/gt/gte/in/nin/stringin', field: 'material.m', values: ['15']} using
|
||||
encodeURIComponent(JSON.stringify({}))"
|
||||
in: query
|
||||
schema:
|
||||
type: array
|
||||
@ -66,6 +61,12 @@
|
||||
example: '["%7B%22mode%22%3A%22eq%22%2C%22field%22%3A%22material.m%22%2C%22values%22%3A%5B%2215%22%5D%7D",
|
||||
"%7B%22mode%22%3A%22isin%22%2C%22field%22%3A%22material.supplier%22%2C%22values%22%3A%5B%22BASF%22%2C%22DSM%22
|
||||
%5D%7D"]'
|
||||
- name: csv
|
||||
description: output as csv, only available for dev and admin
|
||||
in: query
|
||||
schema:
|
||||
type: boolean
|
||||
example: false
|
||||
responses:
|
||||
200:
|
||||
description: samples overview (output depends on the fields specified)<br>
|
||||
|
Reference in New Issue
Block a user