def get_one(self, ref_or_id, requester_user):
        """
        Outputs the file associated with action entry_point

        Handles requests:
            GET /actions/views/entry_point/1
        """
        LOG.info("GET /actions/views/entry_point with ref_or_id=%s", ref_or_id)
        action_db = self._get_by_ref_or_id(ref_or_id=ref_or_id)

        permission_type = PermissionType.ACTION_VIEW
        rbac_utils = get_rbac_backend().get_utils_class()
        rbac_utils.assert_user_has_resource_db_permission(
            user_db=requester_user,
            resource_db=action_db,
            permission_type=permission_type,
        )

        pack = getattr(action_db, "pack", None)
        entry_point = getattr(action_db, "entry_point", None)

        abs_path = utils.get_entry_point_abs_path(pack, entry_point)

        if not abs_path:
            raise StackStormDBObjectNotFoundError(
                "Action ref_or_id=%s has no entry_point to output" % ref_or_id
            )

        with codecs.open(abs_path, "r") as fp:
            content = fp.read()

        # Ensure content is utf-8
        if isinstance(content, six.binary_type):
            content = content.decode("utf-8")

        try:
            content_type = mimetypes.guess_type(abs_path)[0]
        except Exception:
            content_type = None

        # Special case if /etc/mime.types doesn't contain entry for yaml, py
        if not content_type:
            _, extension = os.path.splitext(abs_path)
            if extension in [".yaml", ".yml"]:
                content_type = "application/x-yaml"
            elif extension in [".py"]:
                content_type = "application/x-python"
            else:
                content_type = "text/plain"

        response = Response()
        response.headers["Content-Type"] = content_type
        response.text = content
        return response

        Outputs the file associated with action entry_point

        Handles requests:
            GET /actions/views/entry_point/1
        
st2api/st2api/controllers/v1/action_views.py