https://bugzilla.wikimedia.org/show_bug.cgi?id=48512
--- Comment #4 from Jon <[email protected]> --- The API currently responds with: {"limits":{"coordinates":500}} A successful result however is expected to look like this: {"query":{"pages":{"20004112":{"pageid":20004112,"ns":0,"title":"The Montgomery (San Francisco)","thumbnail":{"source":"https://upload.wikimedia.org/wikipedia/commons/thumb/b/b1/The_Montgomery%2C_San_Francisco.jpg/119px-The_Montgomery%2C_San_Francisco.jpg","width":119,"height":180},"pageimage":"The_Montgomery,_San_Francisco.jpg","coordinates":[{"lat":37.787,"lon":-122.4,"primary":""}]} ,"limits":{"coordinates":500}} If the API is returning no results it should respond with {"query":{"pages":{}}, "limits":{"coordinates":500} } We have too much special casing of all the edge error cases in the API. Let's not introduce even more... -- You are receiving this mail because: You are the assignee for the bug. You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
