feat: add API Gateway v2 service with all 57 operations and execution engine#10
Merged
feat: add API Gateway v2 service with all 57 operations and execution engine#10
Conversation
… engine (#10) Add complete API Gateway v2 (HTTP APIs) support to RustStack with ~57 management API operations and a full execution engine for routing HTTP requests through configured API Gateway resources. ## Phases implemented - **Phase 0**: API, Route, Integration CRUD (15 operations) - **Phase 1**: Stage, Deployment, Route Response CRUD (12 operations) - **Phase 2**: Authorizer, Model CRUD (11 operations) - **Phase 3**: Domain Name, VPC Link, Tag, API Mapping CRUD (18 operations) - **Phase 4**: Execution engine with route matching, Lambda proxy, HTTP proxy, mock integration, and CORS handling ## Architecture - **Two-component design**: Management API (CRUD via /v2/ prefix) and Execution Engine (request proxy via /_aws/execute-api/ prefix) - **restJson1 protocol**: Reuses Lambda's URL-based routing infrastructure - **Smithy codegen**: All types generated from official AWS Smithy model - **Cross-service**: Lambda proxy integration via ruststack-lambda-core ## New crates - `ruststack-apigatewayv2-model`: Auto-generated types (57 ops, 16 enums, 21 shared structs) - `ruststack-apigatewayv2-http`: HTTP protocol layer (router, service, handler trait) - `ruststack-apigatewayv2-core`: Business logic, storage, execution engine Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…l structs
The codegen generated individual `#[serde(rename = "PascalCase")]`
attributes on every struct field, which override the struct-level
`#[serde(rename_all = "camelCase")]`. API Gateway v2 uses camelCase
in the JSON wire protocol (e.g., `name`, `protocolType`), not
PascalCase. This caused `missing field 'Name'` errors when the AWS
CLI sent `{"name": "..."}`.
Remove all PascalCase rename attributes from struct fields while
preserving enum variant renames (e.g., `HTTP`, `WEBSOCKET`).
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The handler was parsing the JSON body before injecting path parameters, causing required fields like `apiId` to be missing. Now merges path params and query params into the JSON body before deserialization. Also handles `resource-arn` -> `resourceArn` translation and collects `tagKeys` query params as JSON arrays. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
/v2/prefix) + Execution Engine (/_aws/execute-api/prefix)ruststack-apigatewayv2-model,ruststack-apigatewayv2-http,ruststack-apigatewayv2-coreaws-sdk-apigatewayv2Test plan
cargo clippy -- -D warningscleancargo +nightly fmtcleancargo deny checkpassesaws-sdk-apigatewayv2🤖 Generated with Claude Code