From the course: Spring Boot and React: Build Scalable and Dynamic Web Apps
Unlock the full course today
Join today to access over 24,700 courses taught by industry experts.
Challenge: REST
From the course: Spring Boot and React: Build Scalable and Dynamic Web Apps
Challenge: REST
(upbeat music) - [Instructor] So now it's time for another challenge exercise. Once again, the instructions, I want you to implement the REST API pattern for the three other web models. So you're going to go ahead and create the RestController, you're going to wire in the service to each one of them, and of course, you need to test your output. Now I want you to think about something here. A product has a vendor, so how do you want to expose those two distinct entities? And there's definitely schools of thought on how to handle those. I personally, would leave them as very separate entities and allow your consumer to decide when to load the vendor or not. However, there can be an argument to state that you should embed the vendor into the product itself and return it because most likely that data is going to be needed. Now, again, I will leave that up to you as a decision to make. I've told you where I'm going to go…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
(Locked)
Understanding the architecture2m 49s
-
(Locked)
Data access3m 46s
-
(Locked)
Setting up for web2m 52s
-
(Locked)
Build a service5m 57s
-
(Locked)
Challenge: Data access1m 41s
-
(Locked)
Solution: Data access1m 20s
-
(Locked)
REST API6m 16s
-
(Locked)
Challenge: REST1m 31s
-
(Locked)
Solution: REST1m 34s
-
(Locked)
-
-