old_contents: from rest_framework import serializers
  
  from apps.contribution.models import Repository
  
  
  class RepositorySerializer(serializers.ModelSerializer):
      class Meta:
          model = Repository
          fields = ('id', 'name', 'description', 'url', 'updated_at')
  
new_contents: from rest_framework import serializers
  
  from apps.contribution.models import Repository, RepositoryLanguage
  
  
  class RepositoryLanguagesSerializer(serializers.ModelSerializer):
      class Meta(object):
          model = RepositoryLanguage
          fields = ('type', 'size')
  
  
  class RepositorySerializer(serializers.ModelSerializer):
      languages = RepositoryLanguagesSerializer(many=True)
  
      class Meta:
          model = Repository
          fields = ('id', 'name', 'description', 'url', 'updated_at', 'languages')
  
subject: Add languages to api endpoint