DummyJSON icon indicating copy to clipboard operation
DummyJSON copied to clipboard

`limit` and `skip` support into `/products/category` endpoint.

Open mrcego opened this issue 2 years ago • 1 comments

First, thanks for this dummy JSON, It's nice to practice and testing some researchs for anything.

But I noticed a lack in the endpoint to get products from a category concerning limit and skip queries, it always returning just 5 records.

Captura de pantalla 2024-02-15 a la(s) 9 13 26 p  m

No matter if you're passing https://dummyjson.com/products/category/${category}?limit=10&skip=5 via fetch or axios.

Thanks in advance.

mrcego avatar Feb 16 '24 02:02 mrcego

https://github.com/Ovi/DummyJSON/issues/50#issue-2137755297

krzysztof293 avatar May 15 '24 14:05 krzysztof293

Hey @mrcego, I see in your screenshot that you have set the skip to 0, which will not skip any products. Since there are only 5 products in that category, you see only 5 results.

Ovi avatar May 23 '24 12:05 Ovi