Skip to content

Filtering resources does not work with multiple wildcards #47

Description

@cwdt

Hi,
I'm experimenting with Vulcain and I'm stuck on the following situation.
I have three calls, simplified:

GET /customers
Response:

[
  {
    "id": 1,
    "name": "Foo",
    "settings": "/customer/1/settings"
  }
]

GET /customer/{id}/settings
Response:

{
  "allowed": false,
  "addresses": "/customer/{id}/settings/addresses"
}

GET /customer/{id}/settings/addresses
Response:

[
    {
      "address": "Street 1",
      "city": "Example city"
    }
  ]

When I try to filter the address resource because I want it to only return the city property, the following is not working:
Fields: /*/settings/addresses/*/city.

When I specify the exact address key (i.e. 0) it does work (Fields: /*/settings/addresses/0/city).

Am I missing something?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions