You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am afraid this is a known bug/limitation of swagger-ui and swagger-js, see the discussion in #1679 and the tracking issue swagger-api/swagger-js#1385.
You can see this yourself in API Explorer UI. When you send the request, the UI shows the full URL, request headers and response headers. There you can see that the request URL created by API Explorer (swagger-js) does not contain the filter properties.
Unfortunately swagger-ui does not warn the user about this problem, which makes the entire experience less than ideal.
Description
In the API Explorer, the
where
filter is being ignored.Steps to reproduce
Using
todo-list
example,GET /todos
with the following filter:It returns all the
todo
instances regardless of the todoListId.However, if I call
http://localhost:3000/todos?filter[where][todoListId]=1
from a browser, it's returning the right response.Investigation
From @nabdelgadir.
Printing out what get passed into
filter
it returns
undefined
from the explorer but{ where: { todoListId: '1' } }
from the linkCurrent Behavior
API Explorer ignores the
where
filter.The text was updated successfully, but these errors were encountered: