3 ms·
I could see this or something similar to it being beneficial for generating a REST API initially when the schema just happens to pretty closely fit what the RES
by ravenstine 4y ago
I could see this or something similar to it being beneficial for generating a REST API initially when the schema just happens to pretty closely fit what the REST API should be.
But after that initial step, I wouldn't want my API dependent on the schema (directly), nor would I want my database schema dependent on the API code. As a side note, that's one reason I didn't take a liking to Django.
Honestly, I'd rather have an RPC based API in the year 2023 than a REST API. REST, I think, was a bit of a mistake in terms of a source for data that would be sent to a stateful frontend as JSON. REST makes sense for webpages, but nothing about data is inherently page-like. I've run into enough quirks dealing with RESTful APIs and the libraries that claim to handle them that I think we should be looking for a better fit.