Link to home
Start Free TrialLog in
Avatar of greenshoots
greenshoots

asked on

MediaWiki API filter, array of objects

Hi!

I try to understand how to use the filter in this API:

https://de.wiki.bluespice.com/wiki/Spezial:ApiSandbox#action=bs-user-
store&format=json&filter=%5B%7B%22user_id%22%3A1%7D%2C%7B%22user_name%22%3A%22WikiSysop%22%7D%5D

The filter is supposed to be an array of objects.
The filter I try to test is: [{"user_id":1},{"user_name":"WikiSysop"}]
Is this an array of objects?

I expect to get user_id for id 1in return. However, it looks like all users are in the response.

(anyone can test de.wiki.bluespice.com/wiki/Spezial:ApiSandbox)
Avatar of greenshoots
greenshoots

ASKER

From the API doc:
bs-user-store

Lists all users from the database. Allows sorting, filtering and pagination. Implements ExtJS Store parameters.




How can I use ExtJS Store parameters? Is this important regarding the filter?
ASKER CERTIFIED SOLUTION
Avatar of greenshoots
greenshoots

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial