Every module can be activated or disabled by adjusting it’s activity in following way:
http { %module_id% (active: false) {} }
Note
You need to replace %module_id%
with the id of module which you want to change activity (in this case, it will disable module).
Disabling REST module.
http { rest (active: false) {} }