chronograf
chronograf copied to clipboard
As an application I can get Create/Update/Delete/Get sources from bolt
A source should contain the following • Name • URL • Default flag • Username • Passowrd (encrypted?) • Database
- 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"