Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialDaniel Turato
Java Web Development Techdegree Graduate 30,124 PointsJava Web Techdegree Final Project
Hello,
I'm on the last project of the Java Web Techdegree and need help with the following points in the outline:
- "Create REST endpoints for CRUD operations"
- "No controllers that have the RestController annotation"
Where should these REST endpoints be accessed via as the project requires using MVC therefore the regular rest uri's won't work alongside the other requirements. I have a lot of confusion about this. If anyone who has completed the course could aid me with that would be great as they took down the slack for this techdegree
Daniel Turato
Java Web Development Techdegree Graduate 30,124 PointsDon't think it matters where it goes as I doubt I'll get an answer anytime soon
Steven Parker
231,271 PointsIt might make a difference with folks who use the topic filters to only see questions in topic areas they enjoy and/or are familiar with.
Daniel Turato
Java Web Development Techdegree Graduate 30,124 PointsI changed it, but I only asked it here as support staff said I need to upload the question here in order for the techdegree team to see it. I understand students can help here, but I doubt if any will be able to help with a last project on an outdated techdegree project
3 Answers
Shaddley Anderson
Treehouse Project ReviewerHey Daniel!
For your first question, this can still be accomplished in the MVC structure you've mentioned. This is done through assigning URIs with @RequestMapping
annotations that then point to methods within your service layer. Obviously, that then reaches into your Repository layer, extending the CrudRepository classes within the Spring framework. This is where the CRUD endpoints are taken care of.
Your second point simply means controllers should be annotated with @Controller
instead of @RestController
. This is because you want to separate the REST functions from the controller, instead having these taken care of at a different layer.
Hope that helps!
Daniel Turato
Java Web Development Techdegree Graduate 30,124 PointsThanks for the help
justin s.
1,009 PointsJesus dude, learn some patience.
Daniel Turato
Java Web Development Techdegree Graduate 30,124 PointsPatience ? I've paid $200 per month for this course for nearly a year now in which I'm entitled to personal support via a slack channel in which they closed and never answered any of my questions. If anything I've been too patience and I've had enough
Steven Parker
231,271 PointsBut here in the forum, you're talking to fellow students that voluntarily help each other.
justin s.
1,009 PointsYou asked later in the day on Monday
Yes, learn some patience.
Daniel Turato
Java Web Development Techdegree Graduate 30,124 PointsI donβt know who you are , but you have no right telling me to be patient when you have no idea how patient Iβve been for a year now.
Steven Parker
231,271 PointsSteven Parker
231,271 PointsThis is the "General" topic area. Did you mean to post this in the Java topic area instead?