Where is the jsonserializer detail docs


#1

Where is the detailed JSONSerializer docs? Guide mainly introduced JSONAPISerializer and a bit about JSONSerializer.

I read though API and Guide but I just couldn’t find what JSONSerializer expects from DELETE response.

The guide said “status code 200” and empty json object. Tired, it words for RESTSerilizer, but not JSONSerializer.

It took me quite long to test this and finally succeed with 200 and null.

Am I missing some important documentation?


#2

https://guides.emberjs.com/v2.8.0/models/customizing-serializers/#toc_jsonserializer

Its there on the middle of the page also check out the Api doc they have some examples.


#3

Is there something you are looking for in particular?


#4

It didn’t mention anything about “return null when delete success”


#5

Like for serializers, what to expect on the client side so Ember will serialize successfully for GET, PATCH, DELETE, POST.


#6

I don’t think it is all outlined in a single place, but I did write a blog post that did: http://thejsguy.com/2015/12/05/which-ember-data-serializer-should-i-use.html

As far as the delete, I believe you can either return an empty response or the record that was deleted.