London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!

Is it possible to get all products under catalog/producttype via the Content Delivery API?

Vote:
 

(i'm new to Commerce but not CMS)


I'm trying out the content delivery API with Epi Commerce, and can get products via friendly URLs, and also a root catalog, but I wonder if it's possible to do something like:

GET http://localhost:12345/en/productcatalog/product/children

What is the recommended way of getting all products of a type for use on product listings? Should I just use Find together with Content Delivery API?

I'm interested in how I get this data as json from the API, _not_ rendered via a controller.

#216344
Feb 04, 2020 12:35
Vote:
 

Have you seen this? Or did you mean retreiving the children through a friendly url?

#216345
Feb 04, 2020 12:50
Vote:
 

Yes i've seen that. I mean retrieving children through friendly url :)

#216346
Feb 04, 2020 12:52
Vote:
 

As /children is not a valid friendly/existing url you will probably get a 404? I think the segments "children" and "ancestors" are only applicable to the content api calls/urls

#216348
Feb 04, 2020 14:12
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.