February 2016
Beginner to intermediate
308 pages
5h 46m
English
Ember Data is very opinionated on how it wants to access data. The adapter has built-in assumptions on what the data looks like. We can use serializers and adapters to change these assumptions.
For this recipe, we'll be building on the student application that we created in the previous section.
We'll be using the same application from the previous recipe. We'll need to edit Ember CLI Mirage to handle a new namespace.
In the config.js file in the mirage folder, update the students route:
// app/mirage/config.js
export default function() {
this.get('api/v1/students');
}This will change the endpoint to api/v1/students instead of just /students.
Read now
Unlock full access