def get_environment_from_request(self):  # type: ignore[no-untyped-def]
        """
        Get environment object from URL parameters in request.
        """
        environment = Environment.objects.get(
            api_key=self.kwargs["environment_api_key"]
        )
        return environment

        Get environment object from URL parameters in request.
        
api/features/views.py