Create a Case using Pega Microservice code from an external system

Microservices are a software development technique—a variant of the service-oriented architecture (SOA) architectural style that structures an application as a collection of loosely coupled services.The benefit of decomposing an application into different smaller services is that it improves modularity. This makes the application easier to understand, develop, test, and become more resilient to architecture erosion. In a microservices architecture, services are fine-grained and the protocols are lightweight. For more details, check the internet.

This is a simple exercise to run a sample Pega microservice code using postman API testing tool (3rd party to run REST api-services). To run this exercise, we need to have a local Pega PE running and the PE would need a sample application running with a Case type and all. Before running the Pega PE, make sure to have postman tool running in the machine. To download the postman tool, follow this site: https://www.getpostman.com/. Check this youtube video on how to use postman: https://www.youtube.com/watch?v=t5n07Ybz7yI

Here are the simple steps to follow

1) Run the Pega PE on Tomcat server
2) Open the Developer portal and open the Case type settings to get the microservice code generated by Pega to create a case from external system
3) Copy the microservice code from above step and paste it in postman tool and add the necessary header/auth settings
4) Run the POST request from the tool and monitor the console for any issues
5) If no issues from the tool then we can get the successful response with the Pega case id (Candidate case in this example)

Below are the screenshots to get an idea on the above mentioned steps





















Please make sure to have your accessgroup pointed with role: PegaRULES:PegaAPI to avoid the issues/errs while running this exercise.

Note: We can use SOAP UI tool for testing the microservice code. Here is the difference b/w SOAP UI and Postman: https://techonestop.com/soapui-alternative-for-webservice-testing

References:
1) https://community1.pega.com
2) https://www.getpostman.com/
3) https://techonestop.com/soapui-alternative-for-webservice-testing
4) https://en.wikipedia.org/wiki/Microservices

Popular posts from this blog

Connecting Claude to Pega Infinity 25.1.3 via MCP — Step-by-Step

itextpdf API to generate PDF doc from an image file using Pega PE

Understanding of Hugging Face platform for AI/ML platform