i want to get all cms pages using REST api i am trying to get via http://localhost/rest/V1/cmsPage/searchs but getting error
The "searchs" value's type is invalid. The "int" type was expected. Verify and try again.
what is proper way to get all cms pages data via REST api without any fillter parametter ? any help appreciate..
asked Dec 31, 2019 at 6:50
Navin Bhudiya
3,0189 gold badges41 silver badges72 bronze badges
1 Answer 1
You need to use "search" instead of "searchs". It's typo and also you need to specify search criteria fields. Execute this below URL in your postman
{baseurl}/rest/V1/cmsPage/search?searchCriteria[sortOrders][0][field]=identifier&searchCriteria[sortOrders][0][direction]=asc
answered Dec 31, 2019 at 6:58
Rohan Hapani
17.6k9 gold badges57 silver badges99 bronze badges
default