08 — 5 endpointsContentArticles and news.
GET
/news/listGet Article ListRequestName In Details pagesizequery e.g. 15pageindexquery e.g. 1Response · 200{ "totalCount": 2, "news": [ { "title": "news title", "type": "news", "created": "2018-07-11T04:44:09.873Z" }, { "title": "news title", "type": "news", "created": "2018-07-11T04:43:12.181Z" } ] }POST
/newsCreate ArticleCreating an article
RequestName In Details titlebody e.g. news titletypebody e.g. newscontentbody e.g. news contenticonbody file backgroundbody file buttonbody e.g. button textContent-Typeheader e.g. application/x-www-form-urlencodedResponse · 200{ "key": "298bbd69…" }GET
/news/detail/:keyGet Article DetailGiven a key, return article details
RequestName In Details keypath Response · 200{ "key": "0072fc14…", "title": "news title", "type": "news", "content": "news content", "variable": { "icon": "icon_1532581721.jpg", "background": "background_1532581721.jpg", "button": null }, "userkey": "4b3b591b…", "created": "2018-07-26T05:08:43.120Z", "modified": "2018-07-26T05:08:43.120Z" }PUT
/news/detail/:keyUpdate ArticleRequestName In Details keypath Content-Typeheader e.g. application/x-www-form-urlencodedResponse · 200{ "key": "298bbd69…", "modified": true }DELETE
/news/detail/:keyDelete ArticleRequestName In Details keypath Response · 200{ "key": "298bbd69…", "removed": true }