esi / esi-issues

Issue tracking and feature requests for ESI
https://esi.evetech.net/
209 stars 23 forks source link

Ability to specify which response model fields to prevent REST resource _over-fetching_ via a query parameter or header #1311

Closed ghost closed 2 years ago

ghost commented 2 years ago

Feature Request

Ability to specify which response model fields to prevent REST resource over-fetching via a query parameter or header

Use case

Third party developers request resources and use only some of the data returned thus discarding unneeded data fields wasting bandwidth, known as the over-fetching problem.

We would then be able to specify the needed fields with either a resource query parameter such as &fields=A,B,C or a header such as x-esi-fields-requested: A,B,C.

This would enable an efficient implementation (no over-fetching) of a REST interface wrapper solution such as proposed in https://github.com/esi/esi-issues/issues/1309

Authentication

Existing authentication is used

Example return

Full or a subset (requested fields) of the data model is returned.

Checklist

Check all boxes that apply to this issue:

ghost commented 2 years ago

What is the reason for this ticket being closed?

DianaOlympos commented 2 years ago

Incapability to understand the design of the API and using it, provide nothing to the conversation on top of existing one.

ghost commented 2 years ago

Is there the ability currently to limit the response to a subset of fields that we only need in our apps?

ddouglas commented 2 years ago

No

ghost commented 2 years ago

Then this ticket should be triaged on it's technical and application merit rather than hostility to the ticket creator.