spring data rest - SDR 2.5.1 ManyToOne vs ManyToMany -


when create resource manytoone relation resource ok. resource created , other resource gets linked.

when try create resource manytomany relation resource type other resources not loaded orm (hibernate 5) , resource cannot persited. when create resource without linked resources , patch resouces works.

is intent or bug?

does not work:

post /foo {"name": "foo", "links": ["/1", "/2"]} 

works:

post /foo {"name": "foo"}  patch /foo/1 {"links": ["/1", "/2"]} 


Comments

Popular posts from this blog

php - How to display all orders for a single product showing the most recent first? Woocommerce -

asp.net - How to correctly use QUERY_STRING in ISAPI rewrite? -

angularjs - How restrict admin panel using in backend laravel and admin panel on angular? -