class_docstr: Execute a APEX Rest API action.
  
  .. seealso::
      For more information on how to use this operator, take a look at the guide:
      :ref:`howto/operator:SalesforceApexRestOperator`
  
  :param endpoint: The REST endpoint for the request.
  :param method: HTTP method for the request (default GET)
  :param payload: A dict of parameters to send in a POST / PUT request
  :param salesforce_conn_id: The :ref:`Salesforce Connection id <howto/connection:SalesforceHook>`.
docstr: Makes an HTTP request to an APEX REST endpoint and pushes results to xcom.
  
  :param context: The task context during execution.
  :return: Apex response
docstr_tok: ["Makes","an","HTTP","request","to","an","APEX","REST","endpoint","and","pushes","results","to","xcom",".",":","param","context",":","The","task","context","during","execution",".",":","return",":","Apex","response"]
code: def execute(self, context: Context) -> dict:
      """
      Makes an HTTP request to an APEX REST endpoint and pushes results to xcom.
  
      :param context: The task context during execution.
      :return: Apex response
      """
      result: dict = {}
      sf_hook = SalesforceHook(
          salesforce_conn_id=self.salesforce_conn_id
      )
      conn = sf_hook.get_conn()
      execution_result = conn.apexecute(
          action=self.endpoint, method=self.method, data=self.payload
      )
      if self.do_xcom_push:
          result = execution_result
  
      return result
  
file_path: airflow/airflow/providers/salesforce/operators/salesforce_apex_rest.py
imports: from __future__ import annotations
  from typing import TYPE_CHECKING
  from airflow.models import BaseOperator
  from airflow.providers.salesforce.hooks.salesforce import SalesforceHook
label_desc: Use image node_id 2 for calling the SalesforceApexRestOperator obj's underlying member method code with example usage: obj.execute(context) and returns: result