Actions
Actions are an extension point to the default HTTP methods provided in the REST API. Methods may be defined in modules and make it easy to perform additional operations on nodes.
Here is an example of an action being called from an URL:
POST http://localhost:8080/cms/render/default/en/sites/ACME/home.startWorkflow.do
All actions use the *.do extension at the end. The above example will start a workflow process on the /sites/ACME/home node. Additional parameters may be specified either using the URL query string, although it is recommended to use HTTP body parameters.
Here are some additional examples of actions provided by Jahia:
-
NewUser (module: userregistration)
-
PublishFile (module: docspace)
-
MailAction (module: formbuilder)
-
GetFeed (module: feedimporter)
-
DocumentConverterAction (module: docConverter)
As you can imagine, this makes it easy to use content actions directly from a simple HTML form, without any Javascript (in this example calling the newUser action):
<form method="post" action="<c:url value='${currentNode.path}.newUser.do' context='${url.base}'/>" name="newUser" id="newUser">

