CRREL / GRiD-API

9 stars 3 forks source link

Partial responses #46

Open chambbj opened 5 years ago

chambbj commented 5 years ago

32 greatly improved response times. Another possible approach would be to enable partial responses. For example,

/aois?fields=name,pk

would only return name and pk of all of my AOIs. On the backend, GRiD will know that intersections do not need to be computed, that exports do not need to be returned, etc. I get only what I need, and GRiD computes only what is necessary to give it to me.

This should be fairly generic, supporting any of the possible fields, and applies to multiple endpoints (aois, exports, products, etc.).