Archived
2

csv only for dev/admin, mail change notice

This commit is contained in:
VLE2FE
2020-08-10 08:09:46 +02:00
parent aa1f79168b
commit 4dede74f49
4 changed files with 35 additions and 19 deletions

View File

@ -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>