Skip to content

Commit

Permalink
BE #5: Sample payload structure added in Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Atiqul Alam Rocky committed Jun 15, 2020
1 parent 12c04fe commit 5c1a757
Showing 1 changed file with 29 additions and 1 deletion.
30 changes: 29 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
* 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"
}]

}
```

0 comments on commit 5c1a757

Please sign in to comment.