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.
-
Create — Editor opens
/articles/addand fills in title, body (via CKEditor), tags, category, and section. -
Save — Dashboard calls
POST /api/v1/article. The article is stored in MongoDB with a status of draft. -
Assign sites — Editor selects which hosted sites should display this article. Dashboard calls
POST /api/v1/article/host-site/:id. -
Publish — Editor clicks Publish. Dashboard calls
PUT /api/v1/article/publish/:id. The article status changes and it becomes available on the client API. -
Child sites display it — Any child-site frontend polling
GET /api/v1/client/postswill now include this article in results.
Tag-Based Routing
Section titled “Tag-Based Routing”Key API Endpoints
Section titled “Key API Endpoints”| Method | Endpoint | Purpose |
|---|---|---|
POST | /api/v1/article | Create new article |
PUT | /api/v1/article/:id | Update article |
POST | /api/v1/article/host-site/:id | Assign article to hosting sites |
PUT | /api/v1/article/publish/:id | Publish article |
GET | /api/v1/client/posts | Child-site reads published articles |