When the data from your server is formatted differently from the data coming from Mirage, you have three options:
- Change the Server
- Change Mirage
- Change your Vue code
Oftentimes changing the server to better match JSON API is the best option, but in this course we're going to stick with the other two methods.
This video grapples with the fact that our server puts an ID in the video attributes, while the official JSON API spec -- and our Mirage setup -- does not.