Rest Integration

requirement

Build the Rest Integration (Service-REST & Connect-REST)

Retrieve Customer details from data table and display on UI, by using REST INTEGRATION.

If customer details are not available, it should display the Error Message.

@AkhilC16801935

Please find the following links that will help you to achieve your requirement.

Connect-REST - Pegasystems Documentation

Service-REST - Pegasystems Documentation

@AkhilC16801935 service rest you don’t need to create. You can create a data page which accepts parameter and gives results. Pega provides ootb apis to hit data page and fetch results. So you just need to create connect rest to fetch data page output. Please check how to fetch data page results using pega apis.

Go to admin studio-> resources-> apis-> under data>

Api-> /data/{ID} (you can read the description to understand this api)

ID is resource path(name of dpage)

Your url will look like https://myco.org/prweb/api/v1/data/yourdpage?dpageparameter=“value”