Hi all,
Why I could not create new user or new custom entity by POST request? I
used to PUT method, It's ok.
Example:
+ Request: curl -X POST
https://localhost:8080/v2tmultimedia/sandbox/users?access_token=YWTt7E9sAJg8EeWh7dcfIHBYKgAAAVGCH_4DcQ5PXQVc2iunGEAOY0FSaqaI33A
-d '{"username":"demo1","name":"Demo1","email":"de...@gmail.com
","password":"Demo_123"}'
+ Response error:
"error":"unrecognized_property","timestamp":1448987542574,"duration":1,"exception":"org.codehaus.jackson.map.exc.UnrecognizedPropertyException","error_description":"Unrecognized
field \"username\" (Class com.sun.jersey.core.provider.EntityHolder), not
marked as ignorable\n at [Source:
org.apache.usergrid.rest.filters.MeteringFilter$InputStreamAdapter@7d584fe4;
line: 1, column: 14] (through reference chain:
com.sun.jersey.core.provider.EntityHolder[\"username\"])"}


I deploy usergrid 1.0.2 on Ubuntu 14.04, jdk 8, tomcat 8.0.29

Hope you can help me resolve this issue. Thank you very much.
-- 
*---------------------------------------------------------------------------------------------*
*Thanh Vu*

*Information Technology Engineer*
*Mobile:* +84903298791
*Skype:* v2t_nd |* Email:* maito:v2tmobile...@gmail.com

Reply via email to