Data posted to api empty?


My api is web api, so I’m using the web-api adapter and serializer (both empty, other than the api url in the adapter)

I can get data from my api just fine, and after a bit of struggle, manage to hit the put and post methods as well (all running locally, so I can debug)

I’m going back to the books on this, but while doing so figured I’d ask: Like I said I can do a GET fine and get the data back (api model and ember model exactly the same, and I use the same model for the PUT and POST’s)

When I do an update or create (thus ember do a PUT or POST) it does call the correct api method, but the object received have all it’s properties empty, so not sure what I’m doing wrong here?

export default Ember.Route.extend({

model() {

actions : {

    saveDeal(newDeal) { => this.transitionTo('deals'));
    } .....

Just occured to me to create a test model (both in api and in ember) with straight text fields, since this “deal” form have several instances of a custom component I created. It just render a dropdown with options, so not sure why that would be a problem (some code below for in case…?)

{{select-component datatype=‘dealtype’}}

export default Ember.Component.extend({

tagName: 'select',
classNames: ['form-control'],
datatype: '',
items: [],
selectedId: 0,
store: Ember.inject.service(),

didReceiveAttrs : function(){
    this._super(...arguments);   'afterRender', this, this.afterRenderEvent);

afterRenderEvent : function(){
    var store = this.get('store'); 
    let items =  store.findAll(this.get('datatype'));
    this.set('items', items); {


{{#each items as |item|}}
    {{#if (eq selectedId}}
        <option selected="selected" value="{{}}">{{}}</option>
        <option  value="{{}}"> {{}} </option>