Re:Implementing REST APIs with Embedded Privacy
by hack37 on Monday October 07, 2013 @02:54PM
(#6510366)
In software development we call it abstraction. Privacy is for real people.
[ Parent
| on HN ]
Re:Implementing REST APIs with Embedded Privacy
by andyfang on Monday October 07, 2013 @03:08PM
(#6510456)
You can also say privacy is about protecting people's information, which is what abstraction allows us to do. It's also a matter of where to make the permissions decisions, at the view level or at the API resource level? At DoorDash, we've found that making that choice at the API resource level was the right decision.
Re:Implementing REST APIs with Embedded Privacy
by nwenzel on Monday October 07, 2013 @05:04PM
(#6511258)
In software there are usually multiple places to accomplish the same thing. I usually ask, "where do I put the work?" I'm usually thinking of the database vs. the framework on the server vs. the client.
The post is a great explanation of the choices and why the API resource was the way to go. Inspired us to take a look at how we put our API together.