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.

Hi Jeff,

Let me start by congratulate you for these excellent articles about Alfresco.

Right now I’m new to Alfresco, it has only been a couple of weeks since my company became a partner for Alfresco, and since then I’ve been racing against the clock to get some knowledge on Alfresco.

Thanks to your articles I’ve managed learn a lot in a relative short period of time, right now I’m stuck at the web script framework tutorial trying to understand why I get an InvalidReferenceException while using the example provided.

Is there any reading material that you can recommend me for my learning stage while waiting for your book to come out?

Hope to see more learning articles really soon
Best wishes

Hi Jeff,

I am ready enjoy and learned from your article. It helps me to understand how webscript work in Alfresco. Alfresco is very new to me. I download your samples code and installed it in Alfresco, but I do not know how to create Somco/Whitepappers and upload some test whitepaper in Alfresco. Secondly, could you point me or send me sample of ui front end code.
Thanks you so much,
Robert

Jeff,

Can you provide some edits to your article so the code can work with 3.0??

Steve

Leave a response

Your response:

Categories