News Feed
Sections




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

Lorna Mitchell:
Five Clues That Your API isn't RESTful
January 23, 2013 @ 10:50:49

Lorna Mitchell has posted a quick checklist of things you can ask about your API to see if it's RESTful or not (five of them):

I get a lot of emails asking me to get involved with API projects, and that means I see a lot of both implemented and planned "RESTful" APIs. [...] A service of some other description may work better for other scenarios or skill sets, and non-RESTful services can be very, very useful. If you tell me that your service is RESTful, then I expect it to be. If you're not sure, look out for these clues:
  • It has a single endpoint
  • All requests are POSTs
  • Response metadata is in the body, not header
  • There are verbs in the URL
  • The URL includes method names

She suggests, though, that "being RESTful" isn't a requirement for "being useful" when it comes to APIs.

0 comments voice your opinion now!
api rest restful tips questions problems


blog comments powered by Disqus

Similar Posts

Zend Developer Zone: Using the Digg API with PHP and PEAR

SmashinGeeks.com: Display the Number of Retweets for a Post Using PHP

Zend Developer Zone: 30 Minutes with Paul Reinheimer

Nick Halstead's Blog: Simple use of DIGG API for your blog

Zend Developer Zone: Using the Stack Exchange API with PHP (part 2)


Community Events

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


extension community laravel5 release opinion unittest language list introduction interview version api voicesoftheelephpant framework wordpress laravel php7 series library podcast

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