Boolean logic in RESTful filtering and queries
问题 This is sort of a follow-up to someone else's question about filtering/querying a list of cars. There the recommendation for a RESTful filtering request was to put filter expressions in the query of the URI, like this: /cars?color=blue&type=sedan&doors=4 That's fine. But what if my filtering query becomes more complicated and I need to use Boolean operators, such as: ((color=blue OR type=sedan) AND doors=4) OR color=red That is, I want to find a four-door blue car or a four-door sedan, but if