Description Webscripts XML Files - odtorres/Alfresco-Sublime-Snippets GitHub Wiki

Description Webscripts XML Files

Just type the command and press ctrl + space

webscript

 <webscript>
	<shortname>human readable name for the Web Script</shortname>
	<description>(optional) is documentation for the Web Script </description>
	<url>/org/helloworld?to={name}</url>
	<url>/org/hello/world?to={name}</url>
        <authentication>user</authentication>

	<format default="html">extension</format>
        <family>name of family</family>
</webscript>

authentication none

<authentication>none</authentication>

authentication user

<authentication>user</authentication>

authentication guest

<authentication>guest</authentication>

authentication admin

<authentication>admin</authentication>

authentication runas

<authentication runas="admin">user</authentication>

cache

<cache>
 <never>false</never>
 <public>true</public>
 <mustrevalidate/>
</cache>

family

<family>name of family</family>

format html argument

<format default="html">argument</format>

format html extension

<format default="html">extension</format>

format html any

<format default="html">any</format>

format json argument

<format default="json">argument</format>

format json extension

<format default="json">extension</format>

format json any

<format default="json">any</format>

lifecycle none

<lifecycle>none</lifecycle>

lifecycle sample

<lifecycle>sample</lifecycle>

lifecycle draft

<lifecycle>draft</lifecycle>

lifecycle public_api

<lifecycle>public_api</lifecycle>

lifecycle draft_public_api

<lifecycle>draft_public_api</lifecycle>

lifecycle deprecated

<lifecycle>deprecated</lifecycle>

lifecycle internal

<lifecycle>internal</lifecycle>

negotiate

<negotiate accept="text/html">html</negotiate>

transaction none

<transaction>none</transaction>

transaction required

<transaction>required</transaction>

transaction requiresnew

<transaction>requiresnew</transaction>

url arg

<url>/org/helloworld?to={name}&amp;subject={subject}</url>

url vartemp

<url>/org/{userid}</url>

url all

<url>/org/{userid}?to={name}&amp;subject={subject}</url>
⚠️ **GitHub.com Fallback** ⚠️