Closed ilsiepotamus closed 7 years ago
This PR moves the mock chart data creation from REST endpoints to static yaml flies to conform with the rest of Covalent-Data
/chartdir
POST /charts
chartdir/mychart.yaml
docker build -t covalent-data .
docker run -p 8080:8080 --name covalent-data covalent-data
docker stop covalent-data
GET
http://localhost:8080/charts
My Chart
http://localhost:8080/charts/mychart
Description
This PR moves the mock chart data creation from REST endpoints to static yaml flies to conform with the rest of Covalent-Data
What's included?
/chartdir
directory for mock chart yaml filesPOST /charts
endpoint for creating mock chartsTest Steps
chartdir/mychart.yaml
docker build -t covalent-data .
docker run -p 8080:8080 --name covalent-data covalent-data
(docker stop covalent-data
to stop)GET
tohttp://localhost:8080/charts
, and check to seeMy Chart
listed as one of the charts.GET
tohttp://localhost:8080/charts/mychart
- you should get chart data returned as an array. Repeat this step to see the chart data update.