What the client sends

Imagine an editor with three boxes for title, body and category. Pressing Publish sends those values, along with authorization and the intended destination, to the server. The server stores the entry, assigns an identifier and lets the client know whether the write succeeded. The next edit uses that identifier.

The early dasBlog welcome credited Charles Cook for the XML-RPC library. XML-RPC packages a named procedure and its arguments in XML for transport over HTTP. MetaWeblog used that mechanism to give desktop editors a common set of publishing calls. Its specification describes an interface that lets programs “get and set the text and attributes of weblog posts.”

MetaWeblog API specification

Three ways to make an edit

MetaWeblog
A client can create a post with metaWeblog.newPost, read it with metaWeblog.getPost and change it with metaWeblog.editPost. The returned post ID is useful even if the title changes. MetaWeblog API specification
AtomPub
An authoring client discovers collections through a service document. It can send an Atom entry to a collection and use the entry’s edit link for later updates. The Atom feed format and the publishing protocol have separate specifications. The Atom Publishing Protocol
Micropub
A client posts to a Micropub endpoint with authorization from the writer. The vocabulary covers articles, notes, replies and other kinds of posts. For a successful create request, the server must include a Location header with the post’s URL in its 201 or 202 response. W3C Micropub

When the answer gets lost

A draft in a desktop editor and a published page have different lifetimes. The server may have saved the entry just before the editor lost its connection. Check the recent entries before sending a second create request. If the first entry exists, keep the server’s ID and update that entry. This avoids leaving two URLs for the same piece of writing.

DasBlog Core still lists desktop editing through Open Live Writer and MetaWeblog. That continuity means an editor and an engine can be updated separately, as long as their agreement about titles, bodies, identifiers and publication state continues to hold.

DasBlog Core project The maintainer on desktop publishing