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.
Nothing
ColdFusion (2018 release): Introduced named parameters.
ColdFusion 11: Added the options parameter.
ColdFusion 10: Added this function.
RestInitApplication( path [, serviceMapping, options] )
Parameter |
Description |
|---|---|
path |
Required. Path to the directory to be registered. |
serviceMapping |
Optional. Alternate string to be used for application name while calling the REST service. |
| options | Optional. Additional options passed for initializing the application.
|
restInitApplication( dirPath=expandPath('path/to/REST/api'),serviceMapping='api');
Sign in to your account