Skip to content

Instantly share code, notes, and snippets.

@mrkhoa99
Last active October 7, 2017 15:10
Show Gist options
  • Save mrkhoa99/253c0e8ce27708616fdb7d381b693b0a to your computer and use it in GitHub Desktop.
Save mrkhoa99/253c0e8ce27708616fdb7d381b693b0a to your computer and use it in GitHub Desktop.
Search using REST APIs
Should Read here first:
http://devdocs.magento.com/guides/v2.2/rest/performing-searches.html
Examples:
1) Quick Search:
http://mage217.loc/rest/V1/search?searchCriteria[requestName]=quick_search_container
&searchCriteria[filterGroups][0][filters][0][field]=search_term
&searchCriteria[filterGroups][0][filters][0][value]=test
&searchCriteria[current_page]=1&searchCriteria[page_size]=5
BUG: https://github.com/magento/magento2/issues/8099
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment