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 <juliushamilton100@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-leave@lists.wikimedia.org