News for hackers. Stuff that matters.
Re:Do we need a web API? by fyp on Thursday November 28, 2019 @11:11AM (#21658300)
Pouchdb/firebase/backend-as-a-services were supposed to be the answer to getting rid of CRUD apis. The problem is authorization and validation becomes really difficult if you don't have a backend that you can trust.
Re:Do we need a web API? by TOGoS on Thursday November 28, 2019 @11:26AM (#21658448)
10 years of writing web application backends has taught me that yes, authorization is indeed the reason we all still have jobs. And the occasional handling of a transaction failure.
Re:Do we need a web API? by cryptonector on Thursday November 28, 2019 @03:52PM (#21660099)
This. If you can just trust the clients, lots of things get easier. Though even then distributed systems are not trivial -- just look at Lustre (where clients in a cluster are all trusted, and if you don't trust some client, then it must use a proxy such as an NFS server running on a cluster member client).
Re:Do we need a web API? by mvila on Thursday November 28, 2019 @09:23PM (#21661511)
Liaison has nothing to do with a backend-as-a-service. You can host your backend anywhere you want.

About authorization, Liaison doesn't expose anything by default. Only the specified attributes and methods are exposed, and there is an authorization mechanism so you can customize what you want depending on the user.

Re:Do we need a web API? by gampleman on Thursday November 28, 2019 @06:06PM (#21660766)
I think Firebase is a much nicer version of this in the sense that it essentially eliminates the backend altogether and allows the client to talk to the DB directly. It is definitely not for every project, but if your project pretty much only needs CRUD, it is amazing.