REST API on/off switch for ERPNext

Ok, this might not be a clever question. Is there a way in ERPNext a switch that allows the complete functionality to be accessed by REST API? Or do we need to go and change the code (something like white-list APIs)?

The reason why I ask is to be able to seamlessly integrate WooCommerce and ERPNext “without writing a single line of code”.