3 ms·
Some of it is confusion about what say a 404 entails, is it the endpoint that does not exist, or that say /api/users returns an empty array for the given search
by arend321 2y ago
Some of it is confusion about what say a 404 entails, is it the endpoint that does not exist, or that say /api/users returns an empty array for the given search parameters. Some libraries even throw an error if they receive a 404.
Probably ambiguity in the HTTP spec.
- chamomeal 2y agoYou’re totally right, but that was just an example I picked from the linked post. GitHub in my experience is pretty good. But I’ve done a lot of exploring of social media marketing API, and you usually can’t rely on any amount of consistency or convention. At work we have a running doc called “API weirdness” for each platform, where we document the many many undocumented behaviors that will throw you off for a day or two. Reddit is particularly bad. Most of the useful “documentation” is found deep in threads in Reddit itself. Critical bits of information, including the very existence of some endpoints, are only explained in replies written by users!