Juniper / contrail

Contrail repo for core components (go based)
Apache License 2.0
44 stars 32 forks source link

filter support for list #97

Open vinamrajais opened 5 years ago

vinamrajais commented 5 years ago

How to filter an object with list as attribute?

Below filter does not work ?filters=supported_platforms==EX4200

{
  "image": [
    {
      "supported_platforms": [
        "EX4200",
        "EX3500"
      ],
      "id":"1",
      "name":"Test1"
    },
    {
      "supported_platforms": [
        "EX9200"
      ],
      "id":"2",
      "name":"Test2"
    },
    {
      "supported_platforms": [
        "EX4200",
        "EX7400"
      ],
      "id":"3",
      "name":"Test3"
    }
  ]
}

Do we have this support? https://github.com/Juniper/contrail/blob/master/doc/rest_api.md#listing-resources

Thanks, Vinamra