Spring Data REST cannot post data to REST api
When I try to post data to my REST API (created using Spring DATA JPA REST) using this command: curl -g -i -X POST -H "Content-Type:application/json" -d '{ "profilphotoid" : 1 }' http://localhost:8080/users/ I get this error: 2016-04-26 04:51:44.288 ERROR 10808 --- [nio-8080-exec-8] o.s.d.r.w.RepositoryRestExceptionHandler : Could not read document: Unexpected character (''' (code 39)): expected a valid value (number, String, array, object, 'true', 'false' or 'null') at [Source: org.apache.catalina.connector.CoyoteInputStream@46929f6b; line: 1, column: 2]; nested exception is com.fasterxml