简体   繁体   English

如何在Laravel 4中构建REST API并添加用户

[英]How to build a REST API in Laravel 4 and add users

I am working with Laravel 4 attempting to build a REST API. 我正在与Laravel 4合作尝试构建REST API。 I have to create a resourceful controller, model, and associated views for managing multiple api consumers. 我必须创建一个资源丰富的控制器,模型和相关视图来管理多个api使用者。 I want each api consumer to (at a minimum) have attributes for api_key and shared_secret. 我希望每个api使用者(至少)拥有api_key和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/ . 我一直在查询Jeremy Kendall关于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. 我不明白应该去哪里。

Here's a tutorial on user authentication: https://medium.com/on-coding/e8d93c9ce0e2 这是一个关于用户身份验证的教程: https//medium.com/on-coding/e8d93c9ce0e2

Here's one on ACL: https://medium.com/on-coding/a7f2fa1f9791 这是关于ACL的一个: https//medium.com/on-coding/a7f2fa1f9791

And here's one on REST API's in L4: https://medium.com/on-coding/c643022433ad 这里是关于L4中REST API的一个: https//medium.com/on-coding/c643022433ad

我建议你在做任何突击行动之前先观看Laravel 4系列中的新功能

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM