diff --git a/config/alfresco/bootstrap-context.xml b/config/alfresco/bootstrap-context.xml
index cded220fcb..eea9358eca 100644
--- a/config/alfresco/bootstrap-context.xml
+++ b/config/alfresco/bootstrap-context.xml
@@ -187,6 +187,10 @@
Documentation on how to develop a Web Script may be found here.
Web Scripts allow you to bind new Alfresco-based functionality to a HTTP method and custom URL. A library of URLs may be built up to provide a complete API accessible via HTTP. They are ideal for building data access & update APIs and simple UI components such as Portlets. Development of Web Scripts may be performed within Alfresco. Knowledge of Java is not required.
For example, you could create the following API for your particular application...
GET http://<host>:<port>/alfresco/service/blog/category?c=Web20
GET http://<host>:<port>/alfresco/service/blog/2007/03/04/new-release
POST http://<host>:<port>/alfresco/service/blog/2007/03/04/new-release?status=Draft
DELETE http://<host>:<port>/alfresco/service/blog/2007/03/04/new-release
\ No newline at end of file +Documentation on how to develop a Web Script may be found here.
Web Scripts allow you to bind new Alfresco-based functionality to a HTTP method and custom URL. A library of URLs may be built up to provide a complete API accessible via HTTP. They are ideal for building data access & update APIs and simple UI components such as Portlets. Development of Web Scripts may be performed within Alfresco. Knowledge of Java is not required.
For example, you could create the following API for your particular application...
GET http://<host>:<port>/alfresco/service/blog/category?c=Web20
GET http://<host>:<port>/alfresco/service/blog/2007/03/04/new-release
POST http://<host>:<port>/alfresco/service/blog/2007/03/04/new-release?status=Draft
DELETE http://<host>:<port>/alfresco/service/blog/2007/03/04/new-release
\ No newline at end of file diff --git a/config/alfresco/bootstrap/webscripts/readmeExtension.html b/config/alfresco/bootstrap/webscripts/readmeExtension.html new file mode 100644 index 0000000000..bd41188310 --- /dev/null +++ b/config/alfresco/bootstrap/webscripts/readmeExtension.html @@ -0,0 +1 @@ +Documentation on how to develop a Web Script may be found here.
Any part of a Web Script (i.e. its description, "execute" javascript, or "response" template) may be overridden. This is achieved by copying the original part to this extension folder. The folder within which the part lives must be replicated in this extension area too.
e.g. to override the html output of the "Keyword search" script...
copy
/Data Dictionary/Web Scripts/org/alfresco/repository/keywordsearch.get.html.ftl
to
/Data Dictionary/Web Scripts Extensions/org/alfresco/repository/keywordsearch.get.html.ftl
Once copied, you can make your changes to the copy.
To ensure your override is registered, go to /alfresco/service/ and click on the "Refresh List of Web Scripts" button. The next invocation of the web script will include your override.