fotinakis / jsonapi-serializers

Pure Ruby readonly serializers for the JSON:API spec.
MIT License
414 stars 91 forks source link

multiple serializers in one request #106

Closed alexanderkraemer closed 4 years ago

alexanderkraemer commented 7 years ago

How about a possibility to handle a set of objects with one request, but not all of the objects are handled by the same serializer. Would this be possible, or is there already such a function? Kindof a "SerializerFactory" where you define for which object type the right Serializer is chosen.

fotinakis commented 7 years ago

Have you tried it? It should already be possible based on the way that we serialize objects individually.