Plugin chef Ansible

Hi ,

    I want to know if foreman plugin (ansible or chef )   communicate 

with the configuration management server or platform (chef or ansible )
using theirs rest Api ?

Thanks