A web script is a service bound to a URI that responds to HTTP methods such as GET, POST, PUT, and DELETE.
There are two kinds of web scripts that use the same underlying code:
- Data Web Scripts
- Presentation Web Scripts
For more information on web scripts, see Web Scripts.
Repository web scripts
Repository web scripts encapsulate access and modification of content/data held in the content repository; therefore, they are provided and exposed only by the Content Services server.
Data web scripts provide a server interface for client applications to query, retrieve, update, and perform processes, typically using request and response formats such as XML and JSON.
Presentation web scripts
Presentation web scripts let you customize and extend the web UI. They typically render HTML and can include browser-hosted JavaScript.
Unlike data web scripts, presentation web scripts can be hosted in the Content Services server or in a separate presentation server. When hosted separately, presentation web scripts in the presentation server interact with data web scripts in the Alfresco content application server by using the Repository REST API.