chronograf icon indicating copy to clipboard operation
chronograf copied to clipboard

As an application I can get Create/Update/Delete/Get sources from bolt

Open nhaugo opened this issue 10 years ago • 1 comments

A source should contain the following • Name • URL • Default flag • Username • Passowrd (encrypted?) • Database

nhaugo avatar Sep 27 '16 01:09 nhaugo

  • Create:
curl -X POST -H "Content-Type: application/json"  -d '{
    "name": "howdy",
    "url": "http://localhost:8086"
}' "http://localhost:8888/chronograf/v1/sources"
  • Update:
curl -X PATCH -H "Content-Type: application/json"  -d '{
    "name": "doody",
    "url": "http://supercoolhost:8086"
}' "http://localhost:8888/chronograf/v1/sources/1"
  • Delete:
curl -X DELETE  -d '{
    "name": "doody",
    "url": "http://supercoolhost:8086"
}' "http://localhost:8888/chronograf/v1/sources/1"
  • Get All:
curl -X GET "http://localhost:8888/chronograf/v1/source"
  • Get One:
curl -X GET "http://localhost:8888/chronograf/v1/source/1"

goller avatar Oct 05 '16 17:10 goller