Slackbot
06/26/2023, 6:31 AMThilak Reddy
06/26/2023, 6:31 AM{
"1234": {
"abcd": "ef"
}
}
i want to remove the key abcd
and so the OPA API request is
curl --location --request PATCH '<http://localhost:8181/v1/data/1234>' \
--header 'Content-Type: application/json-patch+json' \
--data-raw '[{
"op":"remove",
"path": "/abcd"
}]'
and i am confused how to make the same request happen with the data update trigger API of OPAL server, the following does not work
curl --location --request POST '<http://localhost:7002/data/config>' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer <token>' \
--data-raw '{
"entries": [
{
"url": "",
"data": [
{ "op": "remove", "path": "/abcd" }
],
"config": {},
"topics": [
"policy_data"
],
"dst_path": "/1234",
"save_method": "PATCH"
}
],
"reason": "laboris fugiat commodo",
"callback": {
"callbacks": []
}
}'
i don’t think data is where i should be specifying the JSON patch request but i don’t see any other place to specify it, am i missing something?Or Weis
06/26/2023, 6:43 AMThilak Reddy
06/26/2023, 6:53 AMThilak Reddy
07/03/2023, 1:33 PMOr Weis
07/03/2023, 1:52 PMFilip
07/03/2023, 1:53 PMThilak Reddy
07/04/2023, 10:22 AMOr Weis
07/04/2023, 10:23 AMThilak Reddy
07/04/2023, 10:24 AMand add a comment on the PR that you are authorizing the contribution of it to open-source.curious to know if there is any reason, doesn’t raising a pull request by default mean i am contributing to open source? 🤔
Or Weis
07/04/2023, 10:29 AMThilak Reddy
07/04/2023, 10:30 AMRo'e Katz
07/05/2023, 4:32 PMRo'e Katz
07/10/2023, 9:17 AMThilak Reddy
07/12/2023, 5:35 AMRo'e Katz
07/12/2023, 3:24 PMOr Weis
07/12/2023, 3:27 PMThilak Reddy
07/12/2023, 3:27 PM