Support simple jsonl exports for records

This commit is contained in:
Denis Arh
2019-08-14 17:06:29 +02:00
parent c1e3231d00
commit 0707f139c4
6 changed files with 245 additions and 0 deletions
+42
View File
@@ -655,6 +655,48 @@
]
}
},
{
"name": "export",
"path": "/export{filename}.{ext}",
"method": "GET",
"title": "Exports records that match ",
"parameters": {
"path": [
{
"type": "string",
"name": "filename",
"required": false,
"title": "Filename to use"
},
{
"type": "string",
"name": "ext",
"required": true,
"title": "Export format"
}
],
"get": [
{
"name": "filter",
"type": "string",
"required": false,
"title": "Filtering condition"
},
{
"name": "sort",
"type": "string",
"required": false,
"title": "Sort field (default id desc)"
},
{
"name": "download",
"type": "bool",
"required": false,
"title": "Send headers to browser to trigger download/save-as"
}
]
}
},
{
"name": "create",
"method": "POST",
+42
View File
@@ -91,6 +91,48 @@
]
}
},
{
"Name": "export",
"Method": "GET",
"Title": "Exports records that match ",
"Path": "/export{filename}.{ext}",
"Parameters": {
"get": [
{
"name": "filter",
"required": false,
"title": "Filtering condition",
"type": "string"
},
{
"name": "sort",
"required": false,
"title": "Sort field (default id desc)",
"type": "string"
},
{
"name": "download",
"required": false,
"title": "Send headers to browser to trigger download/save-as",
"type": "bool"
}
],
"path": [
{
"name": "filename",
"required": false,
"title": "Filename to use",
"type": "string"
},
{
"name": "ext",
"required": true,
"title": "Export format",
"type": "string"
}
]
}
},
{
"Name": "create",
"Method": "POST",