Closed Bidaya0 closed 2 years ago
Hi, you can make a call to a dynamic URL by using the "callhandler" statement:
$.result = callhandler(@url="/api/v1/user/" + $.id, @method="GET")
The method will default to "GET" so it can be omitted. All the non-@ params will be converted to URL parameters on the actual call.
There is some additional documentation here: https://docs.hibikihtml.com/reference/http-module/
Hi, you can make a call to a dynamic URL by using the "callhandler" statement:
$.result = callhandler(@url="/api/v1/user/" + $.id, @method="GET")
The method will default to "GET" so it can be omitted. All the non-@ params will be converted to URL parameters on the actual call.There is some additional documentation here: https://docs.hibikihtml.com/reference/http-module/
Thank you for quick reply.
like this:
How do I add parameters correctly, there is no such example in the playground.