How to send to send get request to api in Ember cli
<pre><code>createData: function(){
    var record = this.get('store').createRecord('ot-list');
    this.set('model', record);
 }.on('init');
</code></pre>

<p>Error while perform action on button,i want to creating record on model and i want to send post request to api.bUt it gives error
'createRecord' is not defined.what should i do...please help me out</p>