add samples to manually curl the webservice

This commit is contained in:
Paul Trowbridge 2025-04-04 14:25:21 -04:00
parent db3dc8bc73
commit f0c8fe4de9
2 changed files with 39 additions and 0 deletions

4
curl_routes/get_scenario.sh Executable file
View File

@ -0,0 +1,4 @@
curl -k -X GET https://usmidsap02:8080/scenario_package \
-H "Content-Type: application/json" \
-d '{"scenario":{"segm":["Greenhouse","Nursery","Other","Sustainable",""],"shipto_group":"PLEASANT VIEW GARDENS"},"version":"1.10.1","username":"dev"}'

35
curl_routes/scale_volume.sh Executable file
View File

@ -0,0 +1,35 @@
curl -k -X POST https://usmidsap02:8080/scale_vp \
-H "Content-Type: application/json" \
-d '{
"qty": "-72370.4782463999",
"tag": "Share Lost",
"type": "scale_vp",
"user": "Trowbridge, Paul",
"stamp": "2025-04-04T18:14:42.543Z",
"amount": "-23504.4070922587",
"source": "adj",
"message": "forecasted pounds",
"version": "1.10.1",
"scenario": {
"iter": [
"copy",
"adj volume",
"adj price",
"upload volume",
"upload price",
"plan",
"diff",
"shift"
],
"segm": [
"Greenhouse",
"Nursery",
"Other",
"Sustainable",
""
],
"version": "b26",
"shipto_group": "PLEASANT VIEW GARDENS"
},
"username": "Trowbridge, Paul"
}'