API talk:Changing wiki content

About save
Hi everybody. I noticed two things about the "save" action:


 * 1) shouldn't the request include the time of the last revision of the article? otherwise, how can the server detect an edit conflict?
 * 2) I think the new content of the page should be passed as a POST request, rather than being embedded in the URL.

Thanks for your attention Paolo Liberatore 10:55, 15 September 2006 (UTC)
 * Hi Paolo. POST & GET are treated the same, thus it really doesn't matter (except in login, where I migth force data to be sent in the post to avoid leaving logging traces, etc. Here i list them in the GET format just for simplicity sake. As for the saving, you are correct, the edit token will contain the revid of the article being submitted. I just haven't gotten around to spescifying the saving part. Thanks for checking! --Yurik 14:37, 15 September 2006 (UTC)

Note that a POST request is permitted to be much larger than a GET request, and so would be needed for submiting large pages. robchurch | talk 07:11, 14 May 2007 (UTC)

Auto merging/edit conflicts
I do have some concerns about the merge case. I think the merge process should be made explicit, which means the client should be able to retrieve the would-be-merged result before the save. Which means there should be a conflict detection query. Maybe a session model would be helpful. Use case A (very rough idea): This would allow to build more editor-like (or browser-like) client apps. --Ligulem 09:12, 17 September 2006 (UTC)
 * 1) The client could say to the server: "Give me the content of page P" (Get(P) returning content)
 * 2) then "Show me the text of page P that would result if I would save it with content C1 right now (and please tell me if this would need a merge and if yes whether the merge would be successful or not )" (Mergecheck(C1) returning mergeresult)
 * 3) then "I want to save page P with content C2" (Save(P,C2)).


 * Please take a look at the parameters for the submit request. Is that what you were looking for? --Yurik 13:36, 18 September 2006 (UTC)


 * Looks good. I think that's it. (sorry for the late reply) --Ligulem 12:06, 22 September 2006 (UTC)

Still need help?
I've been hacking away at Mediawiki for some time now, mainly writing extensions. Recently though I've returned to working on my perl Mediawiki as VCS project: WWW::Mediawiki::Client. I'd like to streamline it using this API, thus I'm very highly motivated to get the API working as soon as possible. So, do you still want help with this? -- MarkAJaroski 13:23, 2 August 2007 (UTC)
 * Help is always welcome :) There is a group from Vodaphone actively collaborating on the edit functionality. I am talking to them every day during the Wikimania in Taipei. Several issues need to be resolved: various commit functionality actions (edit, move, protect, etc), and a comprehensive testing framework / tests to make sure no regression bugs are introduced. Please subscribe to the API mailing list and see the development in the next few days of the api editing branch (not created yet). --Yurik 14:37, 2 August 2007 (UTC)

Branch Maintenance
With two distinct edit branches, who is maintaining them, and are they being maintained separately or in parallel? Also, what about overlap? It seems in everyone's best interest to reduce overlap, but also to make sure that they stay fairly up-to-date with each other. Eddieroger 19:34, 5 November 2007 (UTC)