» CakePHP REST Plugin presentation

On twitter

At our company we have a lot of uses for a solid API. We can use it to distribute config files, have servers report in, let customers edit DNS records using their own interface, etc.
Now that I'm converting all of our legacy code to a big CakePHP application, the API needed a revisit as well. I chose to use REST as a standard, read about everything related to Cake & REST, and started hacking on a reusable plugin. The idea is that you can drop it in any application and unlock existing functionality to REST with minimal changes to your code.

It is still a work in progress, but as the first Dutch CakePHP event was held yesterday and I was asked to present something I thought this particular plugin might be of interest to the community. Here are the slides:

I would love some feedback to help it make better. My todos can be found in the slides as well, to give you an idea where I'm heading with this.

More info on the Dutch CakePHP event

 

Stay up to date

You can track my blog rss articles and rss comments. You may also find my rss bookmarks interesting. Or twitter Follow me on Twitter


Like this article?

   Then Digg it!
Or use another bookmark button below to show your support &
help me spread the word.


tags: cakephp, programming, rest, php, api
category: Programming - PHP - CakePHP
read: 1,482 times

Add comment

(required, shown)(required, not shown)for syntax highlighting

[CODE="Javascript"]
your_code_here();
[/CODE]

Replace "Javascript"
with "php", "text", etc.
code (to make sure you are not a spammer)

 Track replies: rss feed comments feed

Comments

#1. Tamas Jozsa on 12 March 2010

Gravatar.com: Tamas JozsaHi Kevin,

This plug-in is exactly what I'm searching for. Will try it out today and when I have time I will return to give a feedback.

One thing I do not understand so far is, how to call this from a browser. Is it like:
... [more]
www.hostname.com/rest/<modelname>s ???

And how to select whether to output to JSON or XML. As I see in the code XML is there in many places.

Thanks,
Regards,
Tamas