PiedTeam / UniqloCloneTraining-BE-Project

0 stars 0 forks source link

View List Products API #20

Open ThanhIsHereee opened 3 months ago

ThanhIsHereee commented 3 months ago

View List Products API is written for anyone to get the list of the products that have the same character in its name or type or material. return in ascending. request type :

return type :

ghost commented 3 months ago

@ThanhIsHereee can you check for me I have completed the view task

Image

Image

Image

Image

Image

Image

bentran1vn commented 3 months ago

What if I remove type parameter, what is the result of API ? What if there is no value of search API, what is the error ? What if type is number, limit and page is negative ? => No Validate, No Error Message ? @BofNe

ghost commented 3 months ago

I have combined the view and sreach functions

Image

Image

Image

Image

Image

Image

Image

bentran1vn commented 3 months ago

Image

What if i remove type, URL will be search?limit=50&page=1 Can It work @BofNe

ghost commented 3 months ago

@bentran1vn I would like to answer the question What if i remove type, URL will be search?limit=50&page=1 Can It work is: The api will return any 50 products without classification on one page