add samples to manually curl the webservice
This commit is contained in:
parent
db3dc8bc73
commit
f0c8fe4de9
4
curl_routes/get_scenario.sh
Executable file
4
curl_routes/get_scenario.sh
Executable 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
35
curl_routes/scale_volume.sh
Executable 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"
|
||||||
|
}'
|
||||||
Loading…
Reference in New Issue
Block a user