I have the following problem. I am currently working with spring, spring-data-jpa and spring-data-rest. I want to create an rest endpoint for my jpa repository.
So, my current response of my spring-data-rest endpoint is as follows:
{
"_embedded": {
"game": [
]
},
"_links": {
"self": {
"href": "http://localhost:8080/game"
},
"profile": {
"href": "http://localhost:8080/profile/game"
}
},
"page": {
"size": 20,
"totalElements": 0,
"totalPages": 0,
"number": 0
}
}
My problem is, that I only want to return the game part in the _embedded part. No _links, no other things. How can I do that?