Skip to content
Last update: March 22, 2024

REST API Testing

To test the created rule, use REST API testing as follows:

  1. Let's say that according to the created rule you have 6 products to promote (products to diplay) as related products to 6 items (matching products).

    Number of matching products

  2. Copy any of the matching products ids from the Catalog module.

    Matching product id

  3. Access the REST API endpoint and select VirtoCommerce.DynamicAssociationsModule from the drodown list.

    Dropdown

  4. Select POST /api/dynamicassociations/evaluate, paste the Id of the product from clipboard, and complete the request as follows:

    Request

  5. Click Execute to receive the response:

    Response

You can see, the rule is correct returning 6 relatde items that will be displayed with the specified item.