[ACCEPTED]-Spring Data REST - POST new entity with relationships-spring-data-rest
Accepted answer
The format on the page you linked to was 3 out of date. I just updated it. The correct 2 format is:
{
"postalCode": "12345",
"province": "MO",
"lines": ["1 W 1st St."],
"city": "Univille",
"person": "http://localhost:8080/people/1"
}
At least, this is what works for 1 me with my entities.
Source:
stackoverflow.com
More Related questions
Cookie Warning
We use cookies to improve the performance of the site. By staying on our site, you agree to the terms of use of cookies.