Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sending events to the dev version of a ruleset via HTTP

Tags:

krl

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?

like image 253
Steve Nay Avatar asked Nov 27 '25 00:11

Steve Nay


1 Answers

{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
like image 148
Mike Grace Avatar answered Nov 30 '25 23:11

Mike Grace



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!