Closed DiegoECQ closed 7 years ago
Screen shot looks like it's showing the collection just fine. What do you think is missing?
According to the guide should see the data of the employee.
Thanks Regards.
Okay, here's what I did:
$ curl localhost:8080/api/employees
{
"_embedded" : {
"employees" : [ {
"firstName" : "Frodo",
"lastName" : "Baggins",
"description" : "ring bearer",
"_links" : {
"self" : {
"href" : "http://localhost:8080/api/employees/1"
},
"employee" : {
"href" : "http://localhost:8080/api/employees/1"
}
}
} ]
},
"_links" : {
"self" : {
"href" : "http://localhost:8080/api/employees"
},
"profile" : {
"href" : "http://localhost:8080/api/profile/employees"
}
}
}
Looks good to me. What have you done differently, and have you edited any of the code?
I'm seeing the exact same issue. Was there ever any resolution to this?
We have a difference in reproduceability. Try wiping your maven cache at .m2 and running the steps I posted.
This ended up being a user-error on my part. Missed the @Data annotation on the @Entity, so wasn't getting the getters/setters. Sorry about that.
On Sun, Mar 26, 2017 at 5:11 AM, Greg Turnquist notifications@github.com wrote:
We have a difference in reproduceability. Try wiping your maven cache at .m2 and running the steps I posted.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/spring-guides/tut-react-and-spring-data-rest/issues/42#issuecomment-289273260, or mute the thread https://github.com/notifications/unsubscribe-auth/AVRFPPmlaKiIYw2Xy6UJtYJ_mfkkfYgEks5rpkfpgaJpZM4MERwj .
np
Hello, i can't see results for this rest: http://localhost:8080/api/employees
Thank's
Regards.