From 5c1a757fe36149c3eaad424e1349c81df5d87e41 Mon Sep 17 00:00:00 2001 From: Atiqul Alam Rocky Date: Tue, 16 Jun 2020 01:10:44 +0600 Subject: [PATCH] BE #5: Sample payload structure added in Readme --- README.md | 30 +++++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 9fa5a65..baa551d 100644 --- a/README.md +++ b/README.md @@ -5,4 +5,32 @@ A simple CMS backend implemented on REST API. ### Getting Started Clone repository https://github.com/Cefalo/cms-backend-api.git and run the following commands from the source root - * npm install -* npx nodemon \ No newline at end of file +* npx nodemon + +Article RichText payload sample +```JavaScript +{ + "baseVersion": 1, + "frags":[{ + "lineNumber": 1, + "type": "add", //add/delete + "name": "sd23f32", //random generated unique value + "text": "this is main content of that para", + "tag": "p", // div/p/figure/video/iframe + "markups":[{ + "tag": "strong", + "startAt": 0, + "endAt": 5 + },{ + "tag": "a", + "startAt": 32, + "endAt": 42, + "href": "http://www.google.com" + }], + "imageId": "imageId", + "iframeId": "externalLinkId", + "externalResourceId": "externalLinkId" + }] + +} +```