Access REST through groovy
Summary
Access REST through groovyContent
Hi All,
I am looking to call the REST from groovy.
Here is the API and scenario
I am using eligibility rule from products with product group and item id to get the country details. I am looking to get the country details using this call. Can you please suggest how I can access this using groovy.
Response would be similar to :
{
"items" : [
{
"EligibilityRuleId" : xxxxxxxxxxeid,
"ProdGroupId" : xxxxxxxxxxpgId,
"InventoryItemId" : xxxxxxxxxxiiid,
"InvOrgId" : xxxxxxxxxxorgid,
"RuleType" : "AVAILABLE",
"GeographyId" : 300000000361748,
"StartDate" : null,
"EndDate" : null,
"CountryName" : "Saudi Arabia",
Tagged:
1