How To Test The Rest Service In Pega
To work with this nosotros need HTTP URL from Vendor, getting model request and response also will be adept.
In one case nosotros go the URL we can run a wizard "Create residual Integration".
Find out 1 residue service on spider web and consume it.
Click on first link
Click on kickoff link hither
Become the URL of 2d method
This is the URL which we need.
http://services.groupkt.com/country/get/iso2code/{alpha2_code}
Also re-create model response and place it in a text file on desk meridian.
Washed.
Now run the wizard.
Click on next
Click on next
At this screen we tin can upload model JSON response file.
Once it is upload Process commander should exist able to create response properties.
Click on add a file
Browse
Click on submit
Adjacent
Modify the INT layer to Org
Click on create
At present annotation down the above rules and click on shut.
Nearly importantly note down the name of data page created.
Information Page Created
GetCountryDetails
Now go to Int layer
Here the resource path takes Alpha2_code as resources parameter. We need to laissez passer at run time
Here .request.Alpha2_code is the request holding which has to be fix with a value at run fourth dimension
Click on action dropdown and choose view references on connect residue.
Now nosotros can see this rule is chosen from a data page.
Open data page
Here we have request DTF and a parameter is also defined on Information page.
Open asking DTF
Click on parameters link on asking DTF
This ways the parameters of Data page will be passed DTF.
Open DTF
Parameter value is beingness assigned to request property.
Input value passing
When we call Data page we need to pass parameter value,
From Information Page -> Data Transform
From Data Transform -> Request Page.
From Request Page to -> Resources parameters in connect rest.
Once information technology is set, Data folio will call connector.
Once connector is execute, information technology volition call response DTF. Once the response is receive, it volition be internally parsed and assigned to clipboard below page.
Response is a page property available in API form.
Open Response DTF.
Now this data Data transform is creating a page for response class
This page holds actual response page belongings shown in a higher place.
Now higher up screen says, the data is beingness assigned from clipboard response page to Primary Page.
Here Primary Page = Information Folio.
Now open data page and run it.
Done.
How To Test The Rest Service In Pega,
Source: https://harshatrainings.com/how-to-work-with-connect-rest-in-pega/
Posted by: guntherthust1969.blogspot.com
0 Response to "How To Test The Rest Service In Pega"
Post a Comment