Re:pREST – A fully RESTful API from any existing PostgreSQL ...
by thedarkproject on Saturday June 24, 2017 @08:47AM
(#14625409)
> nowadays most of the business logic is mostly on the frontend
This is a design flaw imho and should not be used as a reason to motivate the use of such projects. If your logic is in the frontend you should rather build a backend that captures the logic instead of just putting a rest layer on your DB and call it a day.
Re:pREST – A fully RESTful API from any existing PostgreSQL ...
by denisw on Saturday June 24, 2017 @10:13AM
(#14625633)
Unless you are writing an app that should also work offline. In this case, most of your logic _must_ be your frontend, and your backend is mostly a data repository for data backup and synchronization. In such a scenario, database-as-an-API seems to be exactly the right approach.
It's not necessarily useful if you have trusted code running on your servers, it should just connect to the database. But if this works for you ... why not.
(At least that's how i think of it, others may use it in different ways)