4 ms·
Big problems with the design of the response here, too. Example: https://fivethirtyeight.datasettes.com/polls/president_primary_polls.json https://fivethirtyeig
by bmn__ 4y ago
Big problems with the design of the response here, too. Example: https://fivethirtyeight.datasettes.com/polls/president_primary_polls.json https://fivethirtyeight.datasettes.com/polls/president_prima...
The schema is ad-hoc and requires a human to interpret it. Link relations (at the bottom) are expressed the wrong way: a machine could understand the "next" or "license" relations, but not an arbitrary "next_url" or "license_url" JSON key.
Recommendation: adopt relevant IETF/IANA standards and reformulate the response to take advantage of them.