wmde / WikibaseQuery

DISCONTINUED: Wikibase Query adds query capabilities to Wikibase Repo
Other
2 stars 2 forks source link

Set XML name for array members #41

Open jayvdb opened 10 years ago

jayvdb commented 10 years ago

This Api fails when used with format=xml, as it does not instruct the API what name should be used for each member of the array.

Use setIndexedTagName to set the members to be an 'entity' to match the outer 'entities'.

thiemowmde commented 10 years ago

@jayvdb Please add a test case to EntitiesByPropertyValueApiTest for this new behavior.

JeroenDeDauw commented 10 years ago

@jayvdb Thanks for the patch. Do you have an actual use cases where you need XML rather than JSON?

jayvdb commented 10 years ago

OK, I'll add a test case; probably tomorrow when I get back home.

The use case is I show people the API interface, and it is better to not have an error if 'format=json' is omitted.