I'm hosting the API from a local server, to access follow the links below. To go to the web gui and filter based on categories use this format. Update a forecast by modifying a value in an editable cell and then press 'Update Values'
To see the forecast of skus 1, 2, 3, 5, and 9 on week 10-1-2017:
To filter based on a select week or range of weeks with certain sku(s) enter those filters:
Or to filter based on a single category of skus:
Clone the repo and install the following dependencies on top of a standard Anaconda python 3 environment:
$ pip install formencode flaskTo run the app, navigate to the Flask API directory within terminal and type sudo python v1_api.py. Then to access the api type 'http://192.168.1.170/' followed by the resource you want to use. Note you may need to specify which python using sudo, for example:
$ sudo /home/$USER/anaconda3/bin/python v1_api.pyFor example, to see the forecast of all products in category2 and category3 type:
To filter based on a select week or range of weeks with certain sku(s) enter those filters:
The results will look like:
- {"1":{"2017-08-06T00:00:00.000Z":22,"2017-08-13T00:00:00.000Z":51,"2017-08-20T00:00:00.000Z":101,"2017-08-27T00:00:00.000Z":9,"2017-09-03T00:00:00.000Z":50,"2017-09-10T00:00:00.000Z":21,"2017-09-17T00:00:00.000Z":67,"2017-09-24T00:00:00.000Z":79,"2017-10-01T00:00:00.000Z":48}}
To use the HTML version type:
- http://0.0.0.0/api/v1.0/skus/forecasts/table?cat=cat1
- Update a forecast by modifying a value in an editable cell and then press 'Update Values'
