gorules / zen

Open-source Business Rules Engine for your Rust, NodeJS, Python or Go applications.
https://gorules.io
MIT License
667 stars 61 forks source link

[Question] How to use API for context evaluation #176

Closed josecolella closed 6 days ago

josecolella commented 1 month ago

Hello team, I'm trying out the cloud version of gorules and I am having issues trying to use the evaluate decision API endpoint. I followed the instructions in https://gorules.io/docs/brms/evaluate-decision, and the endpoint I have is

https://jcolella.gorules.io/api/projects/b1d7297e-61e5-498d-9d2a-d5d1f7215773/evaluate/test.json

but it returns a 404

{
"message": "Route GET:/api/projects/b1d7297e-61e5-498d-9d2a-d5d1f7215773/evaluate/test.json not found",
"error": "Not Found",
"statusCode": 404
}
josecolella commented 1 month ago

Is there anything I am missing?

ivanmiletic commented 4 weeks ago

Hi @josecolella did you publish your decision model?

Also, API should be @POST and there should be a body with a field context

stefan-gorules commented 6 days ago

Hi @josecolella, closing. Let us know if the issue is still present.