old_contents: """
  This module contains all the APIs of the project.
  """
  
new_contents: """
  This module contains all the APIs of the project.
  """
  from rest_framework.views import APIView
  
  
  class GetXByIdView(APIView):
  
  	@staticmethod
  	def validate_input(id):
  		return int(id)
subject: introduce parent class to reduce duplication in views