简体   繁体   中英

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

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.

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

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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