[Devel] [GIT] OpenBioMaps GIT repository, branch master updated: query api as csv - file name of csv
git at vocs.unideb.hu
git at vocs.unideb.hu
Thu Apr 26 15:03:07 CEST 2018
The project "OpenBioMaps GIT repository":
The branch, master has been updated
via e468fe11870cc4e53e1d8c52cf36cad167899df9 (commit)
via 789ceba52486da775173928ba0e54cddf04afdb6 (commit)
from ce64bc3262931ee76a3924c35a635be8041939d1 (commit)
- Log -----------------------------------------------------------------
commit e468fe11870cc4e53e1d8c52cf36cad167899df9
Author: Bán Miklós <banm at vocs.unideb.hu>
Date: Thu Apr 26 15:02:29 2018 +0200
query api as csv - file name of csv
commit 789ceba52486da775173928ba0e54cddf04afdb6
Author: Bán Miklós <banm at vocs.unideb.hu>
Date: Thu Apr 26 14:45:30 2018 +0200
new api function: results as csv
The three _GET api calls: ?query=, ?query_api=, ?report=
optionally can create csv output using
&output=csv
Examples:
http://localhost/biomaps/projects/dinpi/?report=2@szamossag&output=csv
resulting a csv file. It can be used programmatically, however in this
case query will be executed by a non-authenticated user.
wget
http://localhost/biomaps/projects/dinpi/?report=2@szamossag&output=csv
browser:
http://localhost/biomaps/projects/dinpi/?query=faj:Tringa%20totanus
wget
http://localhost/biomaps/projects/dinpi/?query=faj:Tringa%20totanus&output=csv
The query_api and the query basically the same thing, but in browser the
query_api hide the header,footer and the filter boxes - so, it is used
when some results loaded into pop-up window.
An other difference is query_api uses json string instead of plain text.
-----------------------------------------------------------------------
Summary of changes:
libs/js/functions.js | 1 +
libs/modules/results_asCSV.php | 2 +-
libs/prepare_vars.php | 67 ++++++++++++++++++++++++++++++++++++++++++
libs/query_builder.php | 12 ++++++--
libs/results_query.php | 8 +++--
5 files changed, 85 insertions(+), 5 deletions(-)
--
OpenBioMaps GIT repository
More information about the Devel
mailing list