开发者

Sending events to the dev version of a ruleset via HTTP

开发者 https://www.devze.com 2023-02-01 12:49 出处:网络
I\'ve been writing an endpoint that sends events to a KRL ruleset via HTTP GET (based on the documentation here), in this format:

I've been writing an endpoint that sends events to a KRL ruleset via HTTP GET (based on the documentation here), in this format:

http://cs.kobj.net/blue/event/{domain}/{eventname}/{appid}

That works great when the version of the app I want to test is the same one that's deployed. I don't always want to deploy before testing it, though. Using the stated format for calling the dev version doesn't work. It still calls the deployed version of my ruleset:

http://cs.kobj.net/blue/event/{domain}/{eventname}/{appi开发者_运维知识库d}:kynetx_app_version=dev

What am I doing wrong?


{appid}:kynetx_app_version=dev

is a query parameter so it needs to come after a '?' or a '&'

Changing your query to the following should get it to work

http://cs.kobj.net/blue/event/{domain}/{eventname}/{appid}/?{appid}:kynetx_app_version=dev
0

精彩评论

暂无评论...
验证码 换一张
取 消