Comments (4)
Not sure I understand what you're after. "self" doesn't refer to a specific element of a relation, only a top-level entity.
from spring-data-rest.
Hi,
let me give an example:
I am calling the entity Car. Then I get the related Tires of the Car, which results in a list of Tires. Having the list of Tires I pick one tire with the following URL:
And it returns me the following:
{
"pressure": 10,
"_links": [
{
"rel": "tires.Tire.car",
"href": "http://localhost:8080/rest/car"
},
{
"rel": "self",
"href": "http://localhost:8080/rest/car/3839196d-6c95-494b-a405-e6d9f120b252"
}
],
"type": 0
}
For self I though it should return
"rel" : "self":
"href": "http://localhost:8080/rest/tire/45c7ad65-09e6-45e4-a549-eda11f4f70b4"
Now more understandable?
from spring-data-rest.
I see what you're saying. I pushed a change to pass the correct information to the link generator. Snapshot artifacts should be available in a few minutes, when the CI build completes.
Thanks for letting me know! :)
from spring-data-rest.
Jon,
thanks! Works perfectly!
from spring-data-rest.
Related Issues (20)
- Extend license header copyright years to 2024
- Extend license header copyright years to 2024
- Extend license header copyright years to 2024
- The merge+patch implementation does not support merging arrays nested within a map HOT 6
- Json Boolean values are not being captured in the project HOT 2
- Documentation uses incorrect annotation in the code example
- Release 4.1.9 (2023.0.9)
- Release 4.2.3 (2023.1.3)
- PATCH request for updating nested collections does not work correctly since spring-boot 3.1.1 HOT 4
- Error "Couldn't find PersistentEntity for type class" when attempting to return Non-PersistenceEntity data HOT 1
- Augmenting arrays during merge patch only appends one element
- Nested arrays of entities need to get PUT semantics applied for merge patch
- Move off Expression infrastructure to apply JSON Patch paths
- Does spring data rest supports sorting on inherited fields? HOT 1
- Issue with Enum datatype in querydsl HOT 3
- Document how to use TestRestTemplate with spring-data-rest
- Release 4.1.10 (2023.0.10)
- Release 4.2.4 (2023.1.4)
- Release 4.3 M2 (2024.0.0)
- Json object not gettting captured in POST request HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spring-data-rest.