cancel
Showing results for 
Search instead for 
Did you mean: 

How RESTful Architecture works in alfresco?

mialfresco
Champ in-the-making
Champ in-the-making
Hi team,
can anyone explain me how RESTful architecture was implemented in alfresco?
And how it works , and how to use this RESTful API in a realtime application?
What is the use of this Architecture and how to design our own RESTful API to access alfresco repository?
what is the relation/difference between RESTful architecture and webscripts?

I have gone through the wiki but not cameup with enough details.

Thanks in advance.
3 REPLIES 3

zaizi
Champ in-the-making
Champ in-the-making
can anyone explain me how RESTful architecture was implemented in alfresco?

Using Webscripts.

And how it works , and how to use this RESTful API in a realtime application?

See web scripts documentation.

What is the use of this Architecture and how to design our own RESTful API to access alfresco repository?

Alfresco Share uses webscripts to connect to a remote Alfresco instance. See Alfresco Share source code.

what is the relation/difference between RESTful architecture and webscripts?

See first answer.

mrogers
Star Contributor
Star Contributor
RESTful architecture is a higher level concept than just using Web Scripts.    It relates to how the web scripts are structured to represent state of the various objects within Alfresco.    The key is to work out what the objects are and how the various GET, PUT, POST and DELETE methods should operate on those objects.    If done well the interface should be intuative and easy to use.

Its perfectly possible to build web scripts which are not RESTFul, for example some of the share web scripts which output HTML are not in the slightest bit RESTful nor do they need to be.

mialfresco
Champ in-the-making
Champ in-the-making
Hi Zaizi and mrogers,
thanks for fast reply!!!
I have gone through the couple of jsps.
in myspaces-webscript.jsp i fond an url like
<r:webScript scriptUrl="/wcs/ui/myspaces" />

But in any of .desc.xml files i didn't find this url, then how it going to be work?
can you tell me the flow of this page?

Thanks again for your help!!!