spring-guides / gs-rest-service

Building a RESTful Web Service :: Learn how to create a RESTful web service with Spring.

Home Page:https://spring.io/guides/gs/rest-service/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Please extend this and show how POST, PUT, and PATCH methods can be implemented for XML and JSON media types

behrangsa opened this issue · comments

See this issue for more details.

It is not obvious how one should:

  • Fetch the entity with a given ID from the reposiory
  • Update its properties from the JSON/XML payload (PATCH)
  • Replace the entity (PUT)
  • Save it back to the repository