cancel
Showing results for 
Search instead for 
Did you mean: 

in, nin, finset, nfinset in Magento search REST apis

in, nin, finset, nfinset in Magento search REST apis

Hi

A have a couple of questions on the search criteria in REST apis 

https://devdocs.magento.com/guides/v2.3/rest/performing-searches.html

 

1. in, nin

It seems that I am expected to supply a list like this

a,b,c

a. Can an individual value contain leading/trailing spaces or are they not considered a part of a value?

b. Can I express a value with a comma in it? 

Does Magento support an escaping syntax that can denote spaces and commas as belonging to a value as opposed to value separators?

 

c. What are finset and nfinset. Are the the same as in and nin?

 

The reason for my questions is that I am working on a product that aims to take a search criteria in a string form (sku=a OR sku=b) and convert in into query parameters for an underlying REST call to /customers/search or similar apis. It does involve inventing a little syntax of my own and I don't want to introduce a conflict with anything Magento expects.

 

Thank you.