我对RESTfulAPI还比较陌生,所以我当然有可能没有正确地设计它。
我希望根据身份验证对象的身份,从/api/ user /user_id返回JSON用户对象的不同子集。因此,如果用户"alice“试图访问/api/ user /alice,她将获得比用户"bob”更多的信息(如私有设置等),后者只会获取她的公共配置文件。我目前正在使用flask_restful和httpbasicau
are copies to others in order to speed up queries since joins are not possible with noSQL)BusinessLayer- Enforces permissionsModel Layer- Definiescan access what objects in what circumstances) Presentati