-
-
Save quadrophobiac/e05d0a9121f81d4b407a4efaab2f3026 to your computer and use it in GitHub Desktop.
CURLs for the ODI's Bothan
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## practical examples of how to use the Bothan API https://demo.bothan.io/documentation | |
#single values | |
curl -X POST -H "Content-Type: application/json" -d '{"time": "2017-03-12","value": 500}' "https://username:password@demo.bothan.io/metrics/replicate" | |
#multiple values | |
curl -X POST -H "Content-Type: application/json" -d '{"time": "2017-03-12","value": {"total": {"value1": 123,"value2": 213,"value4": 535}}}' "https://username:password@demo.bothan.io/metrics/replicate-multi-val" | |
#value with annual and ytd targets | |
curl -X POST -H "Content-Type: application/json" -d '{"time": "2017-03-12","value": {"actual": 1091000,"annual_target": 2862000,"ytd_target": 1368000}}' "https://username:password@demo.bothan.io/metrics/replcate-ytd-targets" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment