Files
floci/src/main/java
Yahia 2288da7f23 feat(apigateway): persist API key tags and add GetApiKey route (#1677)
* feat(apigateway): persist API key tags and add GetApiKey route

CreateApiKey now stores the request tags and returns them from CreateApiKey, GetApiKey and GetApiKeys. Adds the missing GET /apikeys/{apiKeyId} route, which omits the value unless includeValue=true and returns 404 when the key is unknown.

* fix(apigateway): always emit tags object and harden API key tag parsing

Address review feedback: toApiKeyNode always emits "tags" (AWS returns "tags": {} even when empty); createApiKey coerces tag keys/values to String instead of an unchecked cast; the integration test initialises the shared apiKeyId to a sentinel and asserts the JSON error body on the 404 path.

* fix(apigateway): align 404 message and strip api key values from list by default

Address maintainer review: getApiKey now returns the AWS-accurate "Invalid API Key identifier specified" message; GetApiKeys honors the includeValues query param and omits each key's value unless requested (was leaking values by default); toApiKeyNode emits tags only when non-empty. Tests updated accordingly.
2026-07-06 21:43:34 -05:00
..