3 ms·
> PostgREST is a fast way to construct a RESTful API. That's false. The responses don't even have hyperlinks.
by bmn__ 4y ago
> PostgREST is a fast way to construct a RESTful API.
That's false. The responses don't even have hyperlinks.
- GolDDranks 4y agoJust to clear things up a bit (as I remember not knowing about this side of "RESTfulness" a while ago myself): an important part of REST is relying on hypertext, that is pointing to other resources by using URLs. Just returning an ID of a referenced object/resource as a plain number isn't very RESTful, but returning an URL of that object/resource is.
- omnibrain 4y agoYes, but who really does this? I never encountered an API doing it. (Not saying they don't exist!)
- Aeolun 4y agoIf you already have relationships between tables, then it shouldn't be that hard to add right?
- bmn__ 4y agoRight. The problem is not difficulty, but motivation. The responsible programmer begriffs does not have the understanding why it is a good idea to do so, despite bug reporters on Github having spent years in discussions.
- steve-chavez 4y agoTo be fair, begriffs never shut down any discussion of HATEOAS, previous contributors did - because at the time users were asking for more JSON capabilities from PostgREST and we needed to focus on those. We're still open on adding HATEOAS, I've just opened an issue for it: https://github.com/PostgREST/postgrest/issues/2579 https://github.com/PostgREST/postgrest/issues/2579