Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨ Add a url paramenter to /vector/api REST API to filter fields to get from vector data download #618

Open
1 task done
wlorenzetti opened this issue Oct 11, 2023 · 0 comments · May be fixed by #619
Open
1 task done
Assignees
Labels
feature New feature or request
Milestone

Comments

@wlorenzetti
Copy link
Member

Checklist

  • 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

@wlorenzetti wlorenzetti added the feature New feature or request label Oct 11, 2023
@wlorenzetti wlorenzetti added this to the v3.7 milestone Oct 11, 2023
@wlorenzetti wlorenzetti self-assigned this Oct 11, 2023
@wlorenzetti wlorenzetti modified the milestones: v3.7, v3.8 Oct 20, 2023
@wlorenzetti wlorenzetti changed the title Add a url paramenter to /vector/api REST API to filter fields to get from vector data download ✨ Add a url paramenter to /vector/api REST API to filter fields to get from vector data download Oct 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant