Joomla & REST

284 views
Skip to first unread message

sankesolutions

unread,
Nov 24, 2009, 9:42:13 AM11/24/09
to Joomla! General Development
Im looking at using REST to allow a joomla site to talk a number of
different API's. I also want to be able to use the Atompub protocol
to send data to joomla too. I need it to be able to receive data and
then store it in custom component tables maybe.

Im wondering if anyone has done any work on REST with Joomla, if there
are any resources available, any plans to include it in core etc etc.
I dont want to re-do existing work, I will be looking at the CMIS
interface as this is one thing we will be 'talking' too.

In case your wondering we are looking at using it to connect two
websites together, currently we manually share data, one website has a
REST api in place, the other use is to send data from our inhouse DAMS
system to our website, but for the website to store and display the
data so its not reliant on the inhouse system each time it wants to
view the data.

Any code, thoughts, info muchly appreciated

Paul

Joseph LeBlanc

unread,
Nov 24, 2009, 9:59:30 AM11/24/09
to joomla-de...@googlegroups.com
Hi Paul,

I was working on some REST code for Joomla earlier this year, but never had a chance to get it into production. Happy to share what code I have. If the attachment doesn't come through, contact me off list and I'll send it.

-Joe

rest.zip

Andrea Tarr at Tarr Consulting

unread,
Nov 24, 2009, 10:57:15 AM11/24/09
to joomla-de...@googlegroups.com
I think Mitch Pirtle from the NY users group was working on REST as well.

Andrea Tarr
Tarr Consulting

www.tarrconsulting.com

sankesolutions

unread,
Nov 25, 2009, 10:14:10 AM11/25/09
to Joomla! General Development
Thanks Joe and Andrea.

I will take a look at the code, Joe and let you know how we get on.
Might not be much between now and the holidays :(

Andrea can you point Mitch in this direction I dont have any details
for him, and others may find it usefull if he posts his info here too.

Does the Joomla Core have Anything I should look at to integrate with,
either 1.5 or 1.6.

thanks
Paul

On Nov 24, 3:57 pm, "Andrea Tarr at Tarr Consulting"

marius

unread,
Nov 25, 2009, 9:19:20 PM11/25/09
to Joomla! General Development
Thanks Joseph for posting that code.

I'm one of the JFusion developers and already have some code to secure
both the data that is communicated as well as ways to secure access to
such a powerful interface. Using mcrypt_decrypt / mcrypt_encrypt to
protect the payload and a unique key to protect access to the API. We
currently use this to pass cookies between domains (to allow for dual
login accross different domains).

With your permission it would be great if I could use some of your
code to add REST capacilities to exchange user information between
jfusion integrated softwares.

Kind Regards, Marius

Joseph LeBlanc

unread,
Nov 25, 2009, 10:10:11 PM11/25/09
to joomla-de...@googlegroups.com
Feel free to use it, hope it helps! My intention was to develop a library for REST functions in Joomla and then test the waters with it. There was a specific project where I was going to use it, but that project fell through.

-Joe

Mitch Pirtle

unread,
Dec 7, 2009, 3:06:32 PM12/7/09
to joomla-de...@googlegroups.com
Hey Joe, and hey fellow Joomla RESTless folks (rimshot)

My REST library had no authentication, as it was specifically for
private services or via SSL. Although I suppose there could be
authentication included, I'm not sure my implementation would be the
right fit for this.

Well, that and I managed to destroy the original REST library in a
laptop switch (blush)

-- Mitch
Reply all
Reply to author
Forward
0 new messages