Railo 4.2 Reference
Choose a function:


Registers the directory path with the service mapping provided.
      If no service mapping is provided, the application name is used.
      If the rest application is already registered, it is refreshed.


restinitapplication(string dirPath,[string serviceMapping,[boolean default,[string password]]]):void


The arguments for this function are set. You can not use other arguments except the following ones.
Name Type Required Description
dirPath string  Yes Path to the directory to be registered or reseted.  
serviceMapping string  No Alternate string to be used for application name while calling the REST service.  
default boolean  No set if the mapping is a default mapping or not  
password string  No password for the web administrator, this is needed when you update/create a REST mapping.