通过 HTTP 将事件发送到规则集的开发版本

发布于 2024-10-09 20:06:11 字数 469 浏览 0 评论 0原文

我一直在编写一个端点,通过 HTTP GET 将事件发送到 KRL 规则集(基于此处的 文档),采用这种格式:

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

当我要测试的应用程序版本与部署的应用程序版本相同时,这种方法非常有效。不过,我并不总是想在测试之前进行部署。使用规定的格式调用开发版本不起作用。它仍然调用我的规则集的部署版本:

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

我做错了什么?

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?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

大海や 2024-10-16 20:06:11
{appid}:kynetx_app_version=dev

是一个查询参数,因此它需要位于“?”之后或“&”

将您的查询更改为以下内容应该可以使其正常工作

http://cs.kobj.net/blue/event/{domain}/{eventname}/{appid}/?{appid}:kynetx_app_version=dev
{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
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文