How to get all products from a specific category in woocommerce?


#1

I’m interested to know what is the specific url endpoint i need to hit such that i can get all products from a given category.

Tried:

 this.WooCommerce.getAsync("products?filter[category]=" +this.category.slug).then((data) => {
      console.log(JSON.parse(data.body));
      this.products = JSON.parse(data.body);
    }, (err) => {
      console.log(err)
    })

none are not working. This seems like a basic requirement. Am I missing something obvious here? Any insight into solving it is much appreciated. Thanks :slight_smile: