-
Notifications
You must be signed in to change notification settings - Fork 7
add depicted item to mwQueryResult #18
base: master
Are you sure you want to change the base?
Conversation
Interesting! Can you give an example API request that would return this structure? |
I'm not sure I see what the |
@vanshikaarora can confirm that. @dbrant can you make a release without this PR. It would be nice to have other changes available. |
{done} |
I am extremely sorry @maskaravivek @dbrant it was a major mistake of mine. This is the API https://commons.wikimedia.org/w/api.php?action=help&modules=wbsearchentities and here is the response for that:
|
@vanshikaarora This response doesn't need to be parsed with |
@markbergsma I have tried this earlier by using
and
But calling any function on |
OK, it sounds like your goal is to search for items that contain a depicted string. In that case I'm still not clear how the |
To be totally clear, here is a constructed API call that, for example, searches for files on Commons that have the string "foo" in their title (click it to see the result): Can you now show me an API call that represents what you're trying to do (e.g. return items that depict a certain search term)? |
Sure @dbrant here is the commit where I have made changes for the API calls :) |
I'm afraid it's still very unclear what this is supposed to do. Based on the commit you linked, you want to make this API call (click it to see the results): I'm not seeing anything useful in that response. |
As soon as the user types something in "Add depictions for image screen", we search for depictions which are similar to caption entered or similar to the current text entered using the
I expect that this call should return similar result for depictions and the response would be similar to this:
Here is the url:
|
dddf3d0
to
445da7e
Compare
Commons app recently added a feature to search for depictions
The MwQueryResult in the library doesn't contain DepictedItem object. This PR adds the model class.