CLTracker / CLT-webapp

Other
6 stars 1 forks source link

Overview of event data #50

Open Syntaf opened 7 years ago

Syntaf commented 7 years ago

When inserting each event into the backend, the database must conform to the following structure

{
  "start": "2017-04-25T09:00:00.000Z",
  "end": "2017-04-26T01:40:33.043Z",
  "title": "A draggable and resizable event",
  "color": {
    "primary": "#ffffff",
    "secondary": "#FDF1BA"
  }
}

when the database returns an array of these events, each event object must have the following data appended to it:

  "resizable": {
    "beforeStart": true,
    "afterEnd": true
  },
  "draggable": true