185

Laravel接口教程:如何构建和测试RESTful接口

 6 years ago
source link: http://www.itran.cc/2017/10/28/restful-laravel-api-tutorial/?
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
原文请访问Laravel API Tutorial: How to Build and Test a RESTful API。 随着移动开发和JavaScript框架的兴起,使用RESTful API是在数据和客户端之间构建单一接口的最佳选择。 Laravel是一个PHP框架,并注重开发人员的生产力。 由Taylor Otwell编写和维护,框架非常有意义,并努力通过有利于配置的惯例来节省开发人员时间。 该框架还旨在与Web一起发展,并已经在Web开发世界中纳入了几个新功能和想法,例如作业队列,开箱即用的API认证,实时通信等等。 在本文中,我们将探讨如何使用Laravel进行身份验证来构建和测试一个强大的API。 我们将使用Laravel 5.4,所有的代码都可以在GitHub上参考。 RESTful API 首先,我们需要了解什么是RESTful API。 REST代表RE表示状态转移 ,是应用程序之间的网络通信的架构风格,它依赖于无状态协议(通常为HTTP)...

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK