News Feed
Sections




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

SitePoint PHP Blog:
Best Practices REST API from Scratch - Implementation
July 24, 2014 @ 13:11:22

PHPMaster.com has posted the second part of their best practices in REST APIs series with this new post focusing more on the implementation part of things.

We ended the first part of this tutorial with all the basic layers of our API in place. We have our server setup, authentication system, JSON input/output, error management and a couple of dummy routes. But, most importantly, we wrote the README file that defines resources and actions. Now it's time to deal with these resources.

They move on and add more functionality for creating (POST) and updating (PUT/PATCH) contacts in the system. They also show how to list contacts and add in some search handling allowing for sorting and returning only certain data. There's also some code for pagination handling, locating a single contact record, basic caching and simple rate limiting.

0 comments voice your opinion now!
rest bestpractices api tutorial implementation contacts

Link: http://www.sitepoint.com/best-practices-rest-api-scratch-implementation/

blog comments powered by Disqus

Similar Posts

Zend Developer Zone: Revamp, Rebuild, Redo, Re-Everything (and a Site Crash)

NETTUTS.com: How To Build a Widget to Display your Buzzing

Benjamin Eberlei's Blog: Testing Database Locks with PHPUnit and Gearman

AjaxRay.com: Setting up Database testing with Kohana UnitTest module

DevShed: MySQL Table Prefix Changer Tool in PHP


Community Events





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


symfony security language interview package tool voicesoftheelephpant podcast framework version update laravel library community series opinion release composer mvc introduction

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