Using MirageJS to fake a .NET API
By default Mirage sends models using a different style than .NET API. It also sends the model's Id as a string. To fix both problems add the following to createServer
serializers: {
application: RestSerializer.extend({
root: false,
embed: true,
valueForId(id) {
return parseInt(id);
},
}),
},