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

Construct endpoints with chained datasources #216

Closed adamkdean closed 6 years ago

adamkdean commented 7 years ago

It would be great if we could construct endpoints using values from chained datasources in the same way that we construct filters.

{
  "datasource": {
    "key": "models",
    "source": {
      "endpoint": "api/models/{makeId}"
    },
    "chained": {
      "datasource": "makes",
      "outputParam": {
        "param": "results.0._id",
        "field": "makeId"
      }
    }
  }
}
jimlambie commented 6 years ago

Closed via https://github.com/dadi/web/pull/297