Book Image

Learning Alfresco Web Scripts

By : Ramesh Chauhan
Book Image

Learning Alfresco Web Scripts

By: Ramesh Chauhan

Overview of this book

Table of Contents (18 chapters)
Learning Alfresco Web Scripts
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Index

Important things for any web script


While implementing the web scripts in Alfresco, it is essential to understand some of the very important things to be taken care of. There are three important things you should always keep in mind when developing Alfresco web scripts:

  • Choosing the HTTP method for the web script

  • Specifying the URL and arguments for the web script

  • Response formats of the web script

HTTP methods supported by a web script

While developing web scripts and interacting with the Alfresco repository, you should ensure you select the appropriate HTTP method for the web script. It is important to understand the various HTTP methods supported by the web script framework in Alfresco so that you can select the appropriate one for your web script.

GET requests are explained as follows:

  • They are used when retrieving resources from the repository

  • They generally do not require a transaction

  • The same HTTP GET requests return the same resource every time even after being called multiple times

  • It does...