REST Interface
Create a representation of a RESTful interface in your event model.
The REST type supports the following safe and idempotent methods:
PATCH
is also supported, although it is not considered safe or idempotent because it typically changes a resource.
Prerequisite: Create an interface container object
To create a RESTful interface representation:
-
With cursor focus on the interface object:
-
Press Shift+Enter.
Or
-
Right-click and choose Edit from the context menu.
-
-
In the Interface panel, click the Designer tab.
-
Select REST from the Interface Type list.
-
Click the + plus icon.
The
GET
verb is added by default. -
To change the verb, click the menu arrow in the Endpoint Editor.
-
Enter the path to the resource (endpoint URL).
-
Repeat for each method you need to model.
Edit the method or its path using the provided fields.
Click the trash can to delete an endpoint.
-
-
Click Save.
Interface Editor REST GET exampleYou can edit the Name or Description of the interface in the Details tab. -
To exit the Interface Designer and return to the model canvas, click the X, or click anywhere on the model canvas.