Hi All,

I have a question about passing arguments when invoking a REST endpoint in
Apache Isis.

In my sample service I have a method to echo the parameter I pass to it.

public String echoParam(String param)
{
return "echo "+param ;
}

I invoke this using curl as  :
curl -X POST -u sven:pass
http://localhost:8080/restful/services/EchoService/actions/echoParam/invoke?param=hello

I cannot get the desire result and I get below as the response;

{"param":{"value":"hello"},"x-ro-invalidReason":"Argument 'param' found but
no such parameter"}

Can you please advice on how to pass an argument to the REST service
endpoint when invoking via a REST client?

Regards,
Hiruni

Reply via email to