Now that we have created out two cars, we need to make them available as an endpoint. To do this is really easy in Drupal 8. We will create a new view just for our cars feed.
So, go to views and create a new view, as shown:
You will notice there is a new setting at the bottom called REST EXPORT SETTINGS; this is what we are going to use to create our endpoint.
Now, give your view a name of Cars feed and select Content to be of type Cars. Select Provide a REST export and then give it a path; this is the path that will have our data on. Let's use /api/cars and click Save and edit.