Try OpenEdge Now
skip to main content
Online Help
Introducing OpenEdge REST : Tasks : Developing ABL REST Web applications : Working with the REST Expose Editor : Associating REST verbs with operations
 
Associating REST verbs with operations
The Associate Operation with Verb dialog allows you to associate an operation (REST interface-annotated ABL procedure or class file) with a verb of a REST resource.
All the REST interface-annotated ABL class and procedure files available in your current project are displayed under the Resources list on the Associate Operation With Verb dialog. You can associate each REST resource verb with only one operation.
Note: You cannot associate a REST verb with multiple operations.
To associate an operation with a verb:
1. On the REST Expose Editor, click the Select operation icon beside a verb of a REST resource. For example, From the Verb Association section, click the Select operation icon beside the GET verb.
The Associate Operation With Verb dialog appears with a list of REST interface-annotated ABL class and procedure files.
2. From the Resources list, select an operation which you want to associate with the selected verb. If the selected ABL class or procedure file includes an exposed internal procedure, methods, or UDFs, they appears under the ABL routines list.
3. From the ABL routines list, select an REST interface-annotated ABL routine that you want to associate with the verb.
4. Click OK.
The selected operation appears beside the associated verb in the Verb Association section.