Last update:
April 22, 2024
REST API Testing¶
To test the created rule, use REST API testing as follows:
-
Let's say that according to the created rule you have 6 products to promote (products to display) as related products to 6 items (matching products).
-
Copy any of the matching products ids from the Catalog module.
-
Access the REST API endpoint and select VirtoCommerce.DynamicAssociationsModule from the dropdown list.
-
Select POST /api/dynamicassociations/evaluate, paste the Id of the product from clipboard, and complete the request as follows:
-
Click Execute to receive the response:
You can see, the rule is correct returning 6 related items that will be displayed with the specified item.