Ovi / DummyJSON

DummyJSON.com provides different types of REST Endpoints filled with JSON data which you can use in developing the frontend with your favorite framework and library without worrying about writing a backend.
http://dummyjson.com
Other
1.86k stars 202 forks source link

Ignore GET params for images from product list #86

Open dszymczuk opened 3 weeks ago

dszymczuk commented 3 weeks ago

Hi.

I love dummy json in my project. Excellent job!

I want to delay only images instead of the whole rest, so the parameter ?delay=1000 doesn't work for me.

I found a solution called https://requestly.com/ but the add ?_rq_delayed=true into the URL. So this link works: https://cdn.dummyjson.com/products/images/mens-shirts/Man%20Plaid%20Shirt/2.png But this link doesn't work: https://cdn.dummyjson.com/products/images/mens-shirts/Man%20Plaid%20Shirt/2.png?_rq_delayed=true I've got 404.

Is it possible to ignore all get params for images?

Ovi commented 2 weeks ago

Thanks, @dszymczuk! This behavior is unexpected, and I’ll work on fixing it as soon as possible.

dszymczuk commented 2 weeks ago

I thought I would try to prepare a fix, but it requires set up a database 😞 But thank you for fixing that. I appreciate it.