arc:script keyword to create script blocks that respond to REST methods.
Parameters
- method: The HTTP method (GET, POST, PUT/PATCH/MERGE, or DELETE) used to invoke the script. Specify multiple methods in a comma-separated list. You can use this to create REST-like services in Script.
- language: Whether to use the Python scripting language while writing scripts. See Writing Python for details.
Control Attributes
NoneExample
The following script defines theGetTransmissionDetails service. It is only executed when GetTransmissionDetails is accessed using the POST method. The input parameters are defined in the body of the HTTP request.