REST_ENABLE Function
This is a verb that processes the users subroutines, extract any RESTful annotations, and create WPTRs in the RealWeb security file.
Syntax
REST-ENABLE source_file_name [item_list] [([O][F]]
Syntax Elements
|
source_file_name |
Mandatory. Name of source file foe items to be processed. |
|
item_list |
Optional. List of item to be processed, or ‘*’ to process all items in source_file. |
|
(O |
Optional. If specified (O will overwrite any entries in the security file even if they contradict the new definition. |
|
(F |
Optional. If specified (F will cause REST_ENABLE to default to the RealWeb security file name . (Default REALWEB.SECURITY) |
If item_list is not specified then an active select list is used for the list of items.
REST-ENABLE will process a list of subroutine source items and generate the relevant WPTRs in the RealWeb security file. Multiple subroutines may update the same WPTR, as long as more than one subroutine does not specify the same HTTP method used by another subroutine. A subroutine may have multiple RESTful annotations specifying different WPTRs.