Spring Data Rest PUT v.s PATCH LinkableResources

后端 未结 1 1496
自闭症患者
自闭症患者 2020-12-29 13:32

I\'m using Spring Data REST to expose my Entity\'s and their relationships. I have a OneToOne relationship between two Entity\'s and I\'m trying to update/change the relatio

相关标签:
1条回答
  • 2020-12-29 14:07

    From the Spring data REST 2.5.9.RELEASE the associations are not update on PUT request and only update using PATCH.

    Changes in version 2.5.9.RELEASE (2017-04-19)

    DATAREST-1030 - PATCH requests do not handle links to associations properly.

    Other links about this:

    DATAREST-1061: PUT-request with application/json media type payload cannot update association @OneToOne by URI

    Domain Driven Design and Spring

    0 讨论(0)
提交回复
热议问题