I am using EmberJS with django. For my API do I want to use JSONAPI. For this I installed Django rest framework json api. And in Ember do I use the JSONAPIAdapter.
When my Ember app tries to get /appointments/ everything is fine and
"type": "Appointment"
but when my Ember Store tries to save an appointment it goes to the correct URL but
"type": "appointments"
after some testing I concluded that the only type that works is "Appointment", not "appointment" and neither "appointments" or "Appointments".
I don't know why the Ember JSONAPIAdapter does this, but is there a way to fix this problem?
Aucun commentaire:
Enregistrer un commentaire