Skip to content

Instantly share code, notes, and snippets.

@washingtonsoares
Created May 25, 2017 22:00
Show Gist options
  • Save washingtonsoares/f6a39f28df3799af208ea989d304c8b3 to your computer and use it in GitHub Desktop.
Save washingtonsoares/f6a39f28df3799af208ea989d304c8b3 to your computer and use it in GitHub Desktop.
(curl localhost:1026/v1/updateContext -s -S --header 'Content-Type: application/json' \
--header 'Accept: application/json' -d @- | python -mjson.tool) <<EOF
{
"contextElements": [
{
"type": "Product",
"isPattern": "false",
"id": "Product1",
"attributes": [
{
"name": "price",
"type": "float",
"value": "0"
},
{
"name": "name",
"type": "string",
"value": ""
},
{
"name": "category",
"type": "integer",
"value": ""
}
]
}
],
"updateAction": "APPEND"
}
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment