spring-projects / spring-projects/spring-data-rest
Add documentation on how to specify associations on the creation/modification of entities in a single HTTP invokation [DATAREST-1036]
@odrotbohm is already working on this.
Since Dec 31, 2020.
- Dominant language
- Java
- Stars
- 958
- Forks
- 568
- PR merge metrics
- No merged PRs in 30d
Description
Aaron Loes opened DATAREST-1036 and commented
There is supposedly a means of creating an entity and associations with other entities in a single HTTP call. However, there are no examples of how to do this in the documentation or any of the linked guides.
In an old bug report (DATAREST-327), i was informed that this could be done by providing the url of the entity to be associated as the value of the field for single references and in a list for multiple association for the purposes of situations where there are non-optional relationships to other resources. That bug report is old and its likely that the method of specifying associations during entity creation has since changed.
Please add documentation that shows examples of how to structure the payload to include associations to already created entities or respond if this is no longer a feature of SD Rest.
Thank you
No further details from DATAREST-1036
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.