Hi Johan,
Just post something like {"name": {"value": "My new object"}} to the
invoke endpoint.
Hint: if you go to
http://localhost:8080/restful/services/simple/actions/create/
<http://localhost:8080/restful/services/simple/actions/create/invoke> you
can find the right parameter format in the "arguments" field.
Cheers,
Jeroen
On Mon, Sep 8, 2014 at 3:01 PM, <[email protected]> wrote:
> Using postman I try to create a simpleobject through:
> http://localhost:8080/restful/services/simple/actions/create/invoke
>
>
>
> Postman sends:
>
> POST /restful/services/simple/actions/create/invoke HTTP/1.1
> Host: localhost:8080
> Cache-Control: no-cache
>
> ----WebKitFormBoundaryE19zNvXGzXaLvS5C
> Content-Disposition: form-data; name="name"
>
> 'test'
> ----WebKitFormBoundaryE19zNvXGzXaLvS5C
>
>
>
> I get back an ERROR:
>
>
>
>
> "httpStatusCode": 0,
>
> "message": "Unexpected character ('-' (code 45)) in numeric
> value: expected digit (0-9) to follow minus sign, for valid numeric valuen
> at [Source: java.io.StringReader@7fa38051; line: 1, column: 3]",
>
> "stackTrace": [
>
>
> "org.codehaus.jackson.JsonParser._constructError(JsonParser.java:1433)",
>
>
> "httpStatusCode": 0,
>
> "message": "Unexpected character ('-' (code 45)) in numeric
> value: expected digit (0-9) to follow minus sign, for valid numeric valuen
> at [Source: java.io.StringReader@7fa38051; line: 1, column: 3]",
>
> "stackTrace": [
>
>
> "org.codehaus.jackson.JsonParser._constructError(JsonParser.java:1433)",
>
>
>
> Any idea?
>
>