Configuration.yaml via RESTapi

Hi

I’m making a gateway from my legacy domotics to HASS via MQTT and I you like my gateway read addresses and settings via REST API from the HASS configuration.yaml (eg all switches from a platform). Is this possible?

Mario