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

Field selection for /extras extension point #105

Closed
nuest opened this issue Sep 23, 2015 · 3 comments
Closed

Field selection for /extras extension point #105

nuest opened this issue Sep 23, 2015 · 3 comments

Comments

@nuest
Copy link

nuest commented Sep 23, 2015

The /extras endpoint should get a possibility for subsetting the top level fields to allow handling a large number of extension points or to handle extension points which provide large responses.

Full extra information: ../timeseries/id_001/extras:

{
    "fieldA":"somedata",
    "fieldB":1.1,
    "fieldC":{
        "subfields":true,
        "subfield2":42,
        "evenmorestuff": { [...] }
    }
}

Selected extra information: ../timeseries/id_001/extras?fields=fieldA,fieldB

{
    "fieldA":"somedata",
    "fieldB":1.1
}

The name should be discussed, could also be "subset", or "select".

@ridoo
Copy link
Member

ridoo commented Sep 24, 2015

Nice one! Yes, this would make sense but also for the whole API.

@nuest
Copy link
Author

nuest commented Sep 30, 2015

Yes, this would also work as a common query parameter.

@ridoo ridoo changed the title Field selection for /extra extension point Field selection for /extras extension point Oct 28, 2015
@ridoo
Copy link
Member

ridoo commented Apr 14, 2016

I created issue #169 because of the comment above. this issue is closed.

@ridoo ridoo closed this as completed Apr 14, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants