79104602

Date: 2024-10-19 09:38:16
Score: 0.5
Natty:
Report link

There's no error here. According to the HATEOAS style, to change birthCountry in your Person object, you need to send a PUT request to /person/1/birthCountry with a reference to the Country object's address:

PUT /person/1/birthCountry
Content-Type: text/uri-list

/country/11

For more information, see the Spring Data REST.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Andrey Smelik