News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

NetTuts.com:
Laravel 4 A Start at a RESTful API
February 06, 2013 @ 10:37:10

On NetTuts.com today they've posted the start of a new series looking at the creation of a RESTful API with the help of the Laravel 4 framework (in beta at the time of this post).

RESTful API's are hard! There are a lot of aspects to designing and writing a successful one. For instance, some of the topics that you may find yourself handling include authentication, hypermedia, versioning, rate limits, and content negotiation. Rather than tackling all of these concepts, however, let's instead focus on the basics of REST. We'll make some JSON endpoints behind a basic authentication system, and learn a few Laravel 4 tricks in the process.

Their API example is a "read it later" kind of application where users can store links to URLs they want to read later. They walk you through the installation of the framework, creation/configuration of the database and include the migrations to set it up. From there they help you set up the models, some authentication and routing. Finally, they get to the controllers and the functionality of the application, creating the URL controller to handle the creation, listing and updating of the resources.

0 comments voice your opinion now!
restful api laravel4 framework tutorial readitlater


blog comments powered by Disqus

Similar Posts

Fabien Potencier's Blog: Create your own framework... on top of the Symfony2 Components (part 10)

Fabien Potencier's Blog: Create your own framework... on top of the Symfony2 Components (part 1)

SitePoint PHP Blog: Using Solarium with SOLR for Search - Setup

Community News: PHP The Right Way adds Dependency Injection Information

Robert Bolton's Blog: Setting up Fedora Core 5 for Zend Framework


Community Events





Don't see your event here?
Let us know!


series introduction laravel library language application podcast install unittest developer threedevsandamaybe wordpress community configure api release list bugfix interview code

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework