Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

limit and skip support into /products/category endpoint. #50

Closed
mrcego opened this issue Feb 16, 2024 · 2 comments
Closed

limit and skip support into /products/category endpoint. #50

mrcego opened this issue Feb 16, 2024 · 2 comments

Comments

@mrcego
Copy link

mrcego commented Feb 16, 2024

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.

@krzysztof293
Copy link

#50 (comment)

@Ovi
Copy link
Owner

Ovi commented May 23, 2024

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 Ovi closed this as completed May 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants