dadi / web

Web is a drop in front end for websites and web apps. Consumes data from DADI API and others
https://dadi.cloud/en/web/
Other
48 stars 16 forks source link

Flatten .json files #479

Closed abovedave closed 5 years ago

abovedave commented 5 years ago

The DS structure could be simplified to match page.json files (and easy to make backwards compatible).

{
  "datasource": {
    "key": "articles",
    "source": {
      "endpoint": "1.0/site/articles"
    },
    "requestParams": [{
      "param": "slug",
      "field": "slug"
    }],
    "sort": {
      "publishedAt": -1
    },
    "paginate": true,
    "count": 15
  }
}

Could be

{
  "key": "articles",
  "source": {
    "endpoint": "1.0/site/articles"
  },
  "requestParams": [{
    "param": "slug",
    "field": "slug"
  }],
  "sort": {
    "publishedAt": -1
  },
  "paginate": true,
  "count": 15
}