This extension extension uses an APIWrapper hook to:

  • check for all API requests if the request comes from REST (if request holds key and api_key)

    • if so, checks if the hosting website is in maintenance mode (implemented for Drupal, but can be generic. Based on CRM_Core_Config::singleton->userFramework)

    • if maintenance mode is on, it throws an API_Exception with error code maintenance_mode

Author: 
Erik Hommel
Maintainers: 
Used For: 
Fully Qualified Name: 
org.civicoop.checkrestapimaint
Git URL: 
https://github.com/CiviCooP/org.civicoop.checkrestapimaint
Development Status: 
Stable

Releases