Parameterized query not creating endpoint

8 views
Skip to first unread message

Elena Elkin

unread,
Dec 8, 2025, 7:45:19 AM (11 days ago) Dec 8
to Kogito development mailing list
Hello,
When I create this query in a DRL file it creates an API endpoint as expected, which I can see in swagger-ui:
query "find_company_by_id"
    $company : /companyUpdates[companyId == 2]
end

However, when I add a parameter to it and recompile, the endpoint disappears. 
query "find_company_by_id" ( int companyIdInput )
    $company : /companyUpdates[companyId == companyIdInput]
end

Why is this? Is this a common bug or am I doing something wrong?
Thanks for any help. 

Mario Fusco

unread,
Dec 9, 2025, 2:20:17 AM (10 days ago) Dec 9
to kogito-de...@googlegroups.com
Hi,

This is the expected behaviour. Automatic rest endpoints are created only for query without arguments.

Mario

--
You received this message because you are subscribed to the Google Groups "Kogito development mailing list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kogito-developm...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/kogito-development/9161e29a-4dad-4227-bd39-f8dcd5b9b548n%40googlegroups.com.

Elena Elkin

unread,
Dec 11, 2025, 10:17:54 AM (8 days ago) Dec 11
to kogito-de...@googlegroups.com
Thank you for the response. Out of curiosity, why is it built this way?

You received this message because you are subscribed to a topic in the Google Groups "Kogito development mailing list" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/kogito-development/kPSMKjggxSc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to kogito-developm...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/kogito-development/CAPYjU_nJro0WdC_P9S1UwLwZ5-BaAGL6%3DexZcveiUwRx%3DgzDDg%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages