In addition to the excellent guidance from @Stephane.TAILLAND_emp I would offer this guideline – avoid using FLOW services in API GW whenever possible. Auth, encryption, etc. – you should be able to do >95% of what you need in API GW console without needing to use custom code.
Stated another way, adding a custom FLOW (or Java) service in the “local” IS should be the very last resort, never the first option considered. Such components are sometimes needed but it should be very rare.
#webMethods#API-Gateway#API-Management