如何在Laravel 4建立一个REST API,并添加用户 [英] How to build a REST API in Laravel 4 and add users
问题描述
我与Laravel 4个工作试图建立一个REST API。我要创建一个足智多谋的控制器,型号和相关意见,用于管理多个API消费者。我想每个API消费者(至少)有API_KEY和shared_secret属性。我一直在读杰里米·肯德尔对查询页面验证@ HTTP ://jeremykendall.net/2013/08/13/api-query-authentication-with-query-auth/ 。我得到很困惑。我不明白的地方都应该去。
I am working with Laravel 4 attempting to build a REST API. I have to create a resourceful controller, model, and associated views for managing multiple api consumers. I want each api consumer to (at a minimum) have attributes for api_key and shared_secret. I have been reading Jeremy Kendall's page on Query Auth @ http://jeremykendall.net/2013/08/13/api-query-authentication-with-query-auth/. I am getting very confused. I do not understand where everything should go.
推荐答案
下面的用户身份验证的教程: https://开头网上平台。 COM /上编码/ e8d93c9ce0e2
Here's a tutorial on user authentication: https://medium.com/on-coding/e8d93c9ce0e2
下面是一个在ACL: https://medium.com/on-coding/a7f2fa1f9791
Here's one on ACL: https://medium.com/on-coding/a7f2fa1f9791
和这里有一个对REST API在L4: https://medium.com/on-coding/c643022433ad
And here's one on REST API's in L4: https://medium.com/on-coding/c643022433ad
这篇关于如何在Laravel 4建立一个REST API,并添加用户的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!