I need to sort the result of the category's products GET REST API by the product's position in the category. The API is like this:


And here is a sample result of the api to get the products of a category id = 280

enter image description here

It seems this api does not have any search, filter, sortorder or pagesize criteria.

I need to add sortOrder criteria (to sort the result based on position) and set pagesize for navigation the result.

Kindly assist with it with custom module or whatever.



Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.