Roan said:
It's probably a good thing to at least mention which property was unrecognized, and probably even better to completely ignore unknown properties. I'll work on that.
If possible, you may want to consider sending back some kind of dataset which gives the values requested which were able to be fulfilled AND reports any which were not. That way a smart client could tell the difference between an improperly passed query (missing params) and a properly formed query, some of whose properties are merely unrecognized.
Of course, I'm no expert on the API and I don't know the details of the return type, so my opinion may not count for much. :)
-- Jim R. Wilson (jimbojw)
On Tue, May 20, 2008 at 1:43 PM, Roan Kattouw roan.kattouw@home.nl wrote:
Brion Vibber schreef:
Woohoo! Hmm, I do notice though...
In order to get any particular property, I have to ask for it explicitly. But if I ask for any property the server doesn't recognize, the whole request gets rejected with an error message:
"code": "iiunknown_iiprop", "info": "Unrecognised value for parameter 'iiprop'",
This isn't very friendly to progressive enhancement / graceful degredation.
It's probably a good thing to at least mention which property was unrecognized, and probably even better to completely ignore unknown properties. I'll work on that.
- Request a list of supported properties from the server -- I'm unclear
on whether this is even available. Again, we'd have to cache that info to get efficient queries.
Yes there is, action=paraminfo.
Roan Kattouw (Catrope)
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l