mirror of
https://github.com/floci-io/floci.git
synced 2026-11-23 22:11:36 -05:00
UpdateStage patch paths of the form /<resourcePath>/<httpMethod>/<settingKey> (e.g. /*/*/metrics/enabled, /*/*/throttling/burstLimit, /pets/GET/caching/enabled) were silently accepted but discarded, so GetStage returned no methodSettings field and the Terraform aws_api_gateway_method_settings resource failed with "empty result" when read after apply. Adds a MethodSetting POJO with the AWS-documented fields, stores them on Stage in a Map keyed by "<resourcePath>/<httpMethod>", parses the patch path suffix against the canonical setting keys (metrics, logging, throttling, caching), and serialises the map under "methodSettings" in toStageNode so GetStage round-trips the values the patch wrote. New ApiGatewayStageMethodSettingsIntegrationTest covers the three Terraform scenarios (wildcard throttling + logging, wildcard caching, and per-method overrides); verified failing on main and passing with this change.