A simple usecase to expose the REST service using Pega V8.x
There are various instances/scenarios where we can expose Pega services to the external systems. To expose any service from Pega, we can choose Service-REST option in the product. Here I am giving a simple usecase to expose REST service to read the table data using Pega V8.x. Below are the simple steps to be followed for this implementation.
1) Create a simple DataType to capture the medicines in Pega
2) Create a data model to map the incoming request and outgoing response for this service
3) Create a service package for Service-REST method in Pega
4) Create a new Service-REST rule and configure it
5) Create a service activity to build the logic
6) Finally, test the service from browser and/or Postman API editor
References:
1) Pega Developer Help
2) Pega Community Site





