g3w-admin
g3w-admin copied to clipboard
:sparkles: Add a url paramenter to /vector/api REST API to filter fields to get from vector data download
Checklist
- [X] I've searched through the current issues to make sure this feature hasn't been requested already.
Motivation
To allow the end user to choose which attributes to include in the download of a given vector, it would be useful to manage a new url parameter for the REST API /vector/api/ which allows you to decide which attributes to download among those available.
Suggested solution
Create a URL parameter like ftod
(which stands for fields to download) whose content will be a comma-separated list of the names of the attributes we want to download.
I.e.
http://localhost:8006/vector/api/xls/qdjango/338/buildings_2f43dc1d_6725_42d2_a09b_dd446220104a/?ftod=fid,name
Alternatives considered
No response