Interceptor for all frappe API calls

Hello All,

Is it possible to add an interceptor for all APIs:

  • Rest APIs provided by Frappe for doctype
  • Rest APIs created by developers
  • API to get results from Query Report / Script Report

Thank you

All API calls start from here frappe/api.py at develop · frappe/frappe · GitHub