Petr Onderka schrieb:
> Hi,
>
> I have created a proof of concept of this, which contains the
> information only for categorymembers. The code is at [1] and it looks
> something like this (XML formatted):
>
> <props>
>    <prop name="ids">
>      <properties>
>        <property name="pageid" type="integer" />
>      </properties>
>    </prop>
>    <prop name="title">
>      <properties>
>        <property name="ns" type="namespace" />
>        <property name="title" type="string" />
>      </properties>
>    </prop>
>    <prop name="type">
>      <properties>
>        <property name="type">
>          <type>
>            <t>page</t>
>            <t>subcat</t>
>            <t>file</t>
>          </type>
>        </property>
>      </properties>
>    </prop>
> </props>
>
> What do you think?
>
> One problem I'm aware of is that the output uses “prop” and “property”
> to mean something else. Do you have any suggestions for better naming?
>
> After this, I will add the necessary information to the rest of the
> API modules and then post a patch to bugzilla.
>
> [1] 
> https://github.com/svick/mediawiki/commit/868910637445ea0dcf3ad84bc1ee9fc337f7b9c3

Nice work. Two questions:
* Is that only for retrieving properties of list elements?
* Isn't that the right place to start provinding xml/json/whatever 
schemata for api results?
  Bergi

_______________________________________________
Wikitech-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Reply via email to