25th Oct, 2007

Give Alfresco a REST!

A REST API, that is. The latest in the Alfresco Developer Series is an Introduction to the Web Script Framework which shows you how to create your own REST API to the Alfresco repository. As usual, the article has Example Source Code you can download and try out on your own.

The intent of the article is to walk through some hands-on examples using Alfresco’s Web Script Framework which became available in the 2.1 release of the product. The article extends the “SomeCo Whitepapers” example started in the Custom Content Model and Custom Behavior articles by using Web Scripts to create a REST API for creating user-contributed ratings. Front-end developers wire an AJAX ratings widget to the REST API to allow users to rate whitepapers on the SomeCo web site.

Give it a read, try out the code, and let me know what you think.

Read more about the Alfresco Developer Series.

Responses

Hi Jeff, When is your article on advanced workflow with JBPM coming!! I’m waiting for that!!!

Thanks,
Ven

Ven,

Thanks for your enthusiasm. It’s next on my list. I had to get the web script article out first.

I do have a decent start on the workflow article, though, because I can use a lot of the stuff I did when writing Optaros’ internal Alfresco Boot Camp curriculum.

Jeff

[…] Read all about it at:http://ecmarchitect.com/archives/2007/10/25/777 […]

Great article! Like the others!

Hope that with 2.2 we can deploy webscripts in the path dynamically

Since when did you start wearing masks? There is so much I don’t know about the ecmarchitect….

Oh the previous comment was in reference to this link Alfresco blog

[…] Intro to the Web Script Framework […]

Hi Jeff,

Actually I want to rate a document , like adding one menuItem called “Rate It” and, by click it , it will show one JSP having 5 radio buttons. and then can give rating. Is there any other good solution ??

I want to rate document thats it !! any good and easy way ////

Thanks

Jeff,

Actually I don’t want it to show on WebScripts..
Its better we can include it within Document Management Part.

Thanks for the amazing article Jeff.

I feel lucky to have spotted your article and after going through it and the source code, I already feel comfortable with Web Script.

Leave a response

Your response:

Categories