Restapi: Customizing json serializer for content types

Starting to use the restapi and it seems great!

One issue that we've run into, however, is that we're not sure how to overwrite the default json serializer for a given content type?

Basically we're in a situation where if we query for a folder containing a bunch of instances of a certain content type the result will contain almost all the information we need. If we could customize the serializer to return just a small amount of additional data it would save us from having to make many additional queries to get the details of each content type.

I see there is an old issue here: Provide a way to customize, per content type, the ISerializeToJsonSummary for IContentListingObject · Issue #338 · plone/plone.restapi · GitHub

Does anyone know if a solution for this was ever implemented?


1 Like