Can I Use Multiple Filter Conditions Using the Swagger UI With SystemLink?

Updated Aug 16, 2022

Reported In

Software

  • SystemLink Server
  • SystemLink

Issue Details

I'm trying to create a query that would let me use multiple filter conditions using the HTTP methods in the Swagger UI. Is there a way to use multiple filter conditions to extract the corresponding information? 

Solution

There have been included logical operators in order to use multiple filtering conditions in the Swagger UI. These are the AND and OR operators.

Their syntax consists of the following:
  • AND operator: '&&' or 'and'.
  • OR operator: '||' or 'or'. 

Here are some examples:

AND:
  • Example: "filter": "connected.data.state==\"CONNECTED\" and id==\"Precision_0000_Tower--SN-XXXXXXX--MAC-FF-FF-FF-FF-FF-FF\"",
  • Example: "filter": "connected.data.state==\"CONNECTED\" && id==\"Precision_0000_Tower--SN-XXXXXXX--MAC-FF-FF-FF-FF-FF-FF\"",
OR:
  • Example: "filter": "connected.data.state==\"CONNECTED\" or id==\"Precision_0000_Tower--SN-XXXXXXX--MAC-FF-FF-FF-FF-FF-FF\"",
  • Example: "filter": "connected.data.state==\"CONNECTED\" || id==\"Precision_0000_Tower--SN-XXXXXXX--MAC-FF-FF-FF-FF-FF-FF\"",