Api Only Returning 10 Items

If I use example.com/api/products I only get a json file back containing the first 10 products. Do I have to pass something else as a parameter to get the full set?

hi,



please try this:


example.com/api/products?items_per_page=20




NOTE: Try to change value from 20 to another one.

Also please check this article - http://docs.cs-cart…s/products.html



Best regards,

WSA team

Thanks, that worked, I was working from the documentation in that link and it doesn't mention anything about paging. The document implies a GET will return all products.

you're welcome.

p.s. it seems that cs-cart developers forget to add this info into the document.



best regards,

WSA team

[quote name='consciouspnm' timestamp='1436698670' post='222609']

Thanks, that worked, I was working from the documentation in that link and it doesn't mention anything about paging. The document implies a GET will return all products.

[/quote]



Actually the default fn_get_orders function is used by API to get information about orders and you can use any of the default parameters to get necessary data (e.g. total_from, total_to, payments, etc)

We will add the information about entities pagination to documentation.