1. 云栖社区>
  2. PHP教程>
  3. 正文

IntelligentBee.com: Getting Started with Building APIs in Symfony2

作者:用户 来源:互联网 时间:2017-12-01 09:00:08

IntelligentBee.com: Getting Started with Building APIs in Symfony2 - 摘要: 本文讲的是IntelligentBee.com: Getting Started with Building APIs in Symfony2, The IntelligentBee.com site has a "quickstart" kind of tutorial for those wanting to use Symfony 2 to build an API-base

The IntelligentBee.com site has a "quickstart" kind of tutorial for those wanting to use Symfony 2 to build an API-based application. In this tutorialthey walk you through a few step process to create the application and a few actions to get the basics working.

Hello all you Interwebs friends! While we’re passing through the shallow mists of time, REST is becoming more and more of a universal standard when building web applications. That said, here’s a very brief tutorial on how to get started with building APIs in Symfony2.

They make use of two other libraries, the FoSUserBundle, JMSSerializerBundle and Doctrine, to handle some of the low level user management and database functionality. They show you how to:

Generate a new bundle Set up API versioning Install the FoSUserBundle and JMSSerializerBundle Configure the application's REST interface Set up the routing to get things to the right place

Code is also included to show the creation of "get user" and "get users" actions along with a simple form and "add user" endpoints to allow new users to register. Wrapping the post up, he includes the code for the other pieces of the CRUD operations, the "edit user" and "delete user" methods.

以上是云栖社区小编为您精心准备的的内容,在云栖社区的博客、问答、公众号、人物、课程等栏目也有的相关内容,欢迎继续使用右上角搜索按钮进行搜索,以便于您获取更多的相关知识。