The API consists information for the products and comes with the functionality to fetch different results with different query parameters
Each product has 6 properties, namely:
- name
- price
- featured
- rating
- createdAt
- company
The API has the functionality where the user can search and sort the products.
The user can search products by,
- name
- company where companies are ['ikea', 'liddy','caressa', 'marcos']
- featured: true or false
- price and rating- >|<|=|>=|<=
The user can sort the products by,
- name- both ascending and descending alphabetical order
- price - both ascending and desceding order
The API has the functionality to return only the specified fields from the product defined in the 'fields' query param.
The user can then limit the products viewed per page, the default is 10 and can jump to any page depending upon the limit.
Sample queries: