touti
touti

Reputation: 1164

Prestashop: url to get parents categories

I use this url to get the categories: http://192.168.1.26/prestashop/api/categories
but this link return all the categories.
how can i get the parents categories?

Upvotes: 0

Views: 1191

Answers (1)

touti
touti

Reputation: 1164

i found it , this is how i did
http://192.168.1.26/prestashop/api/categories/?display=full&filter[id_parent]=[]
in the url you filter ,the categories that has no parent

Upvotes: 1

Related Questions