Add custom serializer support for the API index