I’m exploring PopRestStore REST Api’s, can anyone help me find API giving all the products like API exists for getting products from a particular category but I want all the products irrespective of their category.
Thanks in advance!
I’m exploring PopRestStore REST Api’s, can anyone help me find API giving all the products like API exists for getting products from a particular category but I want all the products irrespective of their category.
Thanks in advance!
Here are three different options:
/products/SearchProducts
should be able to pull all products by not specifying an id: Swagger UI
popstore.ProductServices.get#ViewAllowProducts
service exposed (which is what is used in PopRestStore
to get all products)Welcome to the Moqui Forum, and let me know if you need more help!
Hi Michael,
/products/SearchProducts must pull all the products but it is only returning an empty list when no id is passed.
and I tried to use ViewAllProduct service but the swagger UI is not working
error: "Parameter productList of service popstore.ProductServices.get#ViewAllowProducts is an array type but has no child parameter (should have one, name ignored), may cause error in Swagger, etc
"
What I’m doing wrong?
@ohma You’re not doing anything wrong. It’s the nature of software to not work, because the amount of permutations of input primarily include an outcome that is not intended.
With this PR the REST API should work as intended: