The API gateway currently directly requests pages from the appservers, meaning that our standard workflow around using mwdebug to test changes is broken and the only way to verify changes is via curl on the staging instances. This is obviously far from ideal.
The API gateway should interpret and respect the X-Mediawiki-Debug header in order to mimic behaviour used on regular deployments.