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

2019-02-11 01:34发布

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.

2条回答
时光不老,我们不散
2楼-- · 2019-02-11 02:01

I'd suggest you to watch the What’s New in Laravel 4 series before doing any commando action.

查看更多
孤傲高冷的网名
3楼-- · 2019-02-11 02:10

Here's a tutorial on user authentication: https://medium.com/on-coding/e8d93c9ce0e2

Here's one on ACL: https://medium.com/on-coding/a7f2fa1f9791

And here's one on REST API's in L4: https://medium.com/on-coding/c643022433ad

查看更多
登录 后发表回答