I am using GET V1/products endpoint to fetch product list. I want to fetch sku and name only.
http://localhost/magento/rest/default/V1/products?searchCriteria[sortOrders][0][direction]=ASC¤cyCode=USD&searchCriteria[currentPage]=1&searchCriteria[pageSize]=10&fields=items[name,sku]
response
{
"items": [
{
"sku": "5245",
"name": "Test Product"
},
{
"sku": "product 1",
"name": "product 1"
},
{
"sku": "product 2",
"name": "product 2"
},
]
}
I am not getting total number of records in this response. I checked it on devdocs as well. It also has same type of response, please find link below.
Please help if anyone already faced this and solved it.