简体   繁体   中英

Sending events to the dev version of a ruleset via HTTP

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}/{appid}: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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM