This sample shows how to setup a simple REST API
- run
bash setup_venv.sh
- run
bash dev_load_main.sh
- admire your created rest dataseries with their own dataseries
- Login to your NF Compose instance (e.g. http://localhost:8000/api) with user
python_client_library_example
and passwordpassword
(if you haven't changed these) - Admire rest api at http://localhost:8000/api/dataseries/by-external-id/dataseries/my_demo_rest_api/datapoint/ (note the by-external-id)
- Use the REST API to modify your dataseries definitions
- dump the dataseries definitions with
bash dump_dataseries.sh
. - Look how
./compose/dataseries.json
reflects the changes you made in the browsable API. - Modify
./compose/dataseries.json
with some changes - run
bash dev_load_main.sh
- See how the dataseries definitions have changed accordingly.