That’s not how modern APIs should work. The wiki does not and should not know anything about the underlaying backend. So it will be easy to change it in the future.
An API to get information from the MWS backend will look like this.
-
URL/bags.jsonorURL/bags.txtwhich returns a list of all bags, where the user has access to. - The same is true for eg:
URL/recipes.json
Once you know the bags you have access to you should be able to do this:
-
URL/bags/my-bag/tiddlers.jsonwhich gives you a list and the content of tiddlers that you have access to -
URL/bags/my-bag/tiddlers/GettingStarted.jsonreturns a single tiddler as JSON - eg:
URL/bags/my-bag/tiddlers.json?skinny(not sure if this URL is valid)… may return the tiddler list with all the meta data, but no text field. To make the data easy to handle.
and so on