spring-projects / spring-projects/spring-data-rest

Expose ManyToOne relations from composite key in _links?

Open
#2,240 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

status: feedback-provided
Dominant language
Java
Stars
958
Forks
568
PR merge metrics
No merged PRs in 30d

Description

I have an Embeddable composite key consisting of two ManyToOne relations.
Currently they are exposed as one self href item resource link.
Is it possible to additionally expose each ManyToOne relation as a separate item resource link in the _links section?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the reported Embeddable composite key with two ManyToOne relations and inspect the current _links output, which exposes one self href item resource link. Determine the expected separate item resource links for each relation; done means the requested links are exposed consistently.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, spring
Domain
api, backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.