July 2018
Intermediate to advanced
420 pages
8h 46m
English
Now, it's time to create the bike model class, but first let's check the JSON format that we have on the bike's detail endpoint, api/bikes/2, as we can see in the following screenshot:

Here, we can note that the bike-detail result points to garages, items, builder, user, and ratings. For the sample application we are building, we will just use the builder and user model. Don't worry about the others; the example we are going to use here is enough for understanding the model domain:
ng g class pages/bikes/bike
Read now
Unlock full access