A REST main annotation appears at the top of a class or procedure file, preceding any code in the file.

A REST main annotation contains the following attributes:

  • File
  • Type
  • executionMode
  • The value of executionMode can be:

executionMode value

Description

external

Default value for an external procedure (a file that contains no internal procedures or functions).

single-run

Default value for a procedure that contains internal procedures and/or user-defined functions.

This value enables you to call internal procedures and user-defined functions in a procedure file.

singleton

Default value for a class that contains methods.

This value enables you to call methods in a class file or internal procedures in a procedure file.