datakind / dk-routing

Container-based Action Routing Tool (CART)
MIT License
6 stars 11 forks source link

Deprecate nodejs instructions and add api endpoints #36

Closed Zebreu closed 9 months ago

Zebreu commented 10 months ago

Will add detailed instructions soon, the four steps are:

docker run --network host dkroutingtool:dev /opt/conda/bin/python src/py/server.py

curl -X "POST" "localhost:5001/provide_files" -H "accept: application/json" -H "Content-Type: multipart/form-data" -F "files=@local_data/config.json"

curl http://localhost:5001/get_solution

curl -o download.zip http://localhost:5001/download

curl -X "POST" "localhost:5001/adjust_solution" -H "accept: application/json" -H "Content-Type: multipart/form-data" -F "files=@download/manual_edits/manual_routes_edits.xlsx"