Manually Creating a REST Connector: Pega How-to Guide
Actually, it is easier to manually create the REST Connector. To do that, in the “Records Explorer”, just navigate as follows:
- Expand the “Integration-Connectors”
- Right-click on “Connect REST”
- Left-click on the “Create”
In the form that opened, enter the following info, followed by clicking on “Create and open”.
In the created rule, for the following tabs, enter the information accordingly.
Service Tab
Fill in the “Resource path” as the “Service endpoint URL” of the Service REST.
Note: You can copy the “Service endpoint URL” from the earlier Service REST.
Methods Tab
GET Method
In the Methods tab, for “Get”, under the “Response”, for the “Message Data”, specify it as follows:
Note: There is nothing to configure for the “Request” since this particular service of ours does not have any inputs!
POST Method
Similarly, for the “Post”, configure the “Request” and “Response” as follows:
OK! Our REST Connector is ready! It is now able to support both “GET” and “POST” method. The next step is to test our REST Connector.
To test the REST Connector, let’s use a Datapage to do that!