text: from django.conf import settings
  from rest_framework import views
  from rest_framework.response import Response
  
  
  class VersionEndpoint(views.APIView):
      def get(self, request):
          """
          Return the version of the application
          """
          data = {"commit": settings.VERSION_SHA, "version": settings.VERSION_NAME}
          return Response(data)
  