As a user of ember-data, you shouldn’t ever have to call
createRecord directly – ember-data will call
createRecord internally any time you ask it to save a new record. You’ll save a record using
myNewRecord.save() or something, and ember will internally call
createRecord. Furthermore, ember will pass three parameters to
snapshot – that hold the information needed to create the record.
Your job, if you are writing your own adapter, is to fill out
createRecord with an AJAX call or whatever you think it needs to perform an API call that saves data remotely. Use the passed parameters
snapshot to access the data needed to create the record.
Check out the example in the documentation to see one possible way of filling out