Hey!
So I am having a slight issue with my restful webservice taking Json. It takes the
Java object as a good request but every time I use Json it gives me a 400 bad request.
Here is my
test class:
You can see in the comments that I tried the object with a "createUser()" and that gave me no problems and put something in the DB. But Json just wont work.
Below is the Webservice Object:
Here is the webservice endpoint:
Here is the Jsons I have tried:
{"Users":["position": 2, "formula": "sadasd","userId": 3 ,
"firstName": "", "lastName": "", "userName": "",
"password": "", "userSocialAccounts": true, "userPrivacy": "",
"email": "", "bio": "", "profilePicUrl": ""]}
and
{"Users":{"position": 2, "formula": "sadasd","userId": 3 ,
"firstName": "", "lastName": "", "userName": "",
"password": "", "userSocialAccounts": true, "userPrivacy": "",
"email": "", "bio": "", "profilePicUrl": ""}}
and
{"position": 2, "formula": "sadasd","userId": 3 ,
"firstName": "", "lastName": "", "userName": "",
"password": "", "userSocialAccounts": true, "userPrivacy": "",
"email": "", "bio": "", "profilePicUrl": ""}