Skip to content

Publishing Flow

This covers the manual publishing path — an editor creates an article in the dashboard and publishes it to one or more child sites.

  1. Create — Editor opens /articles/add and fills in title, body (via CKEditor), tags, category, and section.

  2. Save — Dashboard calls POST /api/v1/article. The article is stored in MongoDB with a status of draft.

  3. Assign sites — Editor selects which hosted sites should display this article. Dashboard calls POST /api/v1/article/host-site/:id.

  4. Publish — Editor clicks Publish. Dashboard calls PUT /api/v1/article/publish/:id. The article status changes and it becomes available on the client API.

  5. Child sites display it — Any child-site frontend polling GET /api/v1/client/posts will now include this article in results.

MethodEndpointPurpose
POST/api/v1/articleCreate new article
PUT/api/v1/article/:idUpdate article
POST/api/v1/article/host-site/:idAssign article to hosting sites
PUT/api/v1/article/publish/:idPublish article
GET/api/v1/client/postsChild-site reads published articles