jeudi 8 mars 2018

Ember - CRUD with online REST API

I am studying CRUD with online REST API, the API only accepts GET. I can get all the data that I need, but how can I create a record even if it's fake?

I'm using an action this.store.createRecord('monster', {novoPoke}).save() and return this error:

Assertion Failed: 'monster' was saved to the server, but the response returned the new id 'bulbasaur', which has already been used with another record.'

I write the code in this TWIDDLE with my entire code.




Aucun commentaire:

Enregistrer un commentaire