gateway config support in REST endpoint