Closed amaury1093 closed 6 years ago
On the frontend, I need the territories, and their related PoliticalEntity's color.
@whirish proposed to return the color for requests on /territories. I solves my immediate problem, but it's not really future-proof.
/territories
Proposal:
/territories?include=politicalentity
Notes:
?fields=...
Wrong repo, I need to sleep now...
On the frontend, I need the territories, and their related PoliticalEntity's color.
@whirish proposed to return the color for requests on
/territories
. I solves my immediate problem, but it's not really future-proof.Proposal:
/territories?include=politicalentity
, cf https://jsonapi.org/format/#fetching-includesNotes:
?fields=...
to only return relevant fields, https://developers.google.com/tasks/performance#partial-response.