HI, I just made an attempt to help Julius, here above to let him know that Rest API services also exist in the scope of the wikibase project orthogonal to the Rest API services !
When I read your statement about the 3 flavors of Rest API as documented in https://www.mediawiki.org/wiki/Wikimedia_REST_API , just for my understanding which one is related to parsoid ? It comes to me another question, in which way the recent UI enhancements keep the parsoid untouched ? Will the Rest API in this area remain upward compatible ? (what I suppose and expect of course) . I am afraid I miss something here ?! Dominique L. Le mar. 27 sept. 2022 à 12:25, bawolff <bawolff...@gmail.com> a écrit : > Most of the docs are at: https://en.wikisource.org/api/rest_v1/ > > I have no idea what the long term plans are between the "Action" API vs > the Wikimedia REST api vs the MediaWiki REST api. Originally the Wikimedia > REST API was mostly stuff related to parsoid & visual editor and connecting > apis that were not written as part of mediawiki but separate (often written > in node.js). > > > Also, would the "parse" prop in the Action API be a good way to get > plaintext from a Wikisource book? > > It would be a good way to get HTML, which I suppose you could turn into > plaintext by removing all the HTML tags. > > If you want to do complicated serialization to plaintext, I would suggest > using parsoid. > > -- > brian > > On Tue, Sep 27, 2022 at 7:51 AM Julius Hamilton < > juliushamilton...@gmail.com> wrote: > >> Hey, >> >> This seems to be the homepage for the "REST API": >> https://www.mediawiki.org/wiki/Wikimedia_REST_API >> >> but I don't see any documentation there for API parameters. >> >> For example, someone gave me this example API call: >> https://en.wikisource.org/api/rest_v1/page/html/Little_Essays_of_Love_and_Virtue >> >> >> But I don't see information in the first link above that you should >> append "page" and "html" to the wikisource API endpoint. >> >> Is there documentation for this API? >> >> Also, is this API an attempt to replace the old one or something? How >> does it differ from the MediaWiki Action API and the MediaWiki REST API? >> >> For example, do they fetch different kinds of information or something? >> >> Also, would the "parse" prop in the Action API be a good way to get >> plaintext from a Wikisource book? >> >> Thank you, >> Julius >> _______________________________________________ >> Mediawiki-api mailing list -- mediawiki-api@lists.wikimedia.org >> To unsubscribe send an email to mediawiki-api-le...@lists.wikimedia.org >> > _______________________________________________ > Mediawiki-api mailing list -- mediawiki-api@lists.wikimedia.org > To unsubscribe send an email to mediawiki-api-le...@lists.wikimedia.org >
_______________________________________________ Mediawiki-api mailing list -- mediawiki-api@lists.wikimedia.org To unsubscribe send an email to mediawiki-api-le...@lists.wikimedia.org