Hi Christoph,
I've looked at your examples and the following ways don't work due to the same
error:
[#assign res3 = restfn.call(jokesService, "joke",params ) /]
[#assign res4 = restfn.call( "icndbClient",
"info.magnolia.documentation.modules.restclientexamples.service.IcndbService",
"jok
Hi Marco
I have tried out the expression proposed by Jan. I had te same result as you.
To be honest, i also was struggling a few times while using restfn.
And at some point i started to use it this way:
[code]
[#assign res5 = restfn.call( "icndbClient",
"info.magnolia.documentation.modules.rest
Hi Jan,
thanks for your reply, I've tried as you suggested but it doesn't work.
I've tried also in the following ways:
[#assign response = restfn.call("icndbClient", "com.example.IcndbService",
"joke", ["random", "Lisa", "Klein"]) /]
or
[#assign jokesService = restfn.getService("icndbCl
Hi Marco,
while the 2 query parameters are optional, rest functions have no means of
knowing that, so you need to provide values for all parameters that method
requires. changing your code to [code]restfn.call("icndbClient",
"com.example.IcndbService", "com.example.IcndbService.joke", ["random