Skip to content
This repository has been archived by the owner on Jan 19, 2021. It is now read-only.

12.2.0

Compare
Choose a tag to compare
@jprjr jprjr released this 19 Aug 20:05
· 32 commits to master since this release

New feature: you can import/export stream settings as JSON files. This is found on the "Advanced" tab of a stream.

The export basically mirrors the API GET request on /api/v1/stream/(id), and the import nearly mirrors a POST request on /api/v1/stream/(id).

I say "nearly" because there's two differences between the webapp import and a POST:

  • The webapp expects an object named "stream" in the JSON file, whereas a POST request just expects to see the stream object directly, ie:
{
  "stream": {
      "id":5,
       "name": "my stream"
  }
}

versus

{
    "id":5,
     "name": "my stream"
}
  • The webapp ignores the "name" attribute of the JSON file -- I don't expect people to edit the "name" attribute before importing, and the "name" has to be unique.