Skip to content

Instantly share code, notes, and snippets.

@IvanZelenskyy
Created November 7, 2019 11:51
Show Gist options
  • Save IvanZelenskyy/2c2aa614b069f314821ef7fbae814375 to your computer and use it in GitHub Desktop.
Save IvanZelenskyy/2c2aa614b069f314821ef7fbae814375 to your computer and use it in GitHub Desktop.
curl -H 'Content-type: application/json; utf-8' -X POST -d '{"requestId": "123e4567-e89b-12d3-a456-426655440000", "indicator": {"id": "keyf_code1", "data":[{"firstDayOfPeriod": "2019-10-01", "periodСode": "month", "orgId":1083, "attr1": 1, "attr2": "string"}, {"firstDayOfPeriod": "2019-10-01", "periodСode": "month", "orgId":1007, "attr1": 2, "attr2": "string2"}, {"firstDayOfPeriod": "2019-10-01", "periodСode": "month", "orgId":1007, "attr1": 3, "attr2": "string3"} ] } }' http://localhost:9090/integration/lukoil/saveIndicatorData
@IvanZelenskyy
Copy link
Author

@IvanZelenskyy
Copy link
Author

$ Invoke-WebRequest -Uri "http://10.202.194.129:9090/integration/lukoil/saveIndicatorData" -Method "POST" -ContentType "application/json; utf-8" -Body ([System.Text.Encoding]::UTF8.GetBytes('{"requestId": "123e4567-e89b-12d3-a456-426655440000", "indicator": {"id": "keyf_code1", "data":[{"firstDayOfPeriod": "2019-10-01", "periodСode": "month", "orgId":1083, "attr1": 1, "attr2": "string"}, {"firstDayOfPeriod": "2019-10-01", "periodСode": "month", "orgId":1007, "attr1": 2, "attr2": "string2"}, {"firstDayOfPeriod": "2019-10-01", "periodСode": "month", "orgId":1007, "attr1": 3, "attr2": "string3"} ] } }'))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment