@@ -562,19 +562,63 @@ your development, building, deployment tooling need to accommodate the distinct
562
562
563
563
## Testing your code
564
564
565
- You can test your routes by passing a proxy event request where ` path ` and ` httpMethod ` .
565
+ You can test your routes by passing a proxy event request with required params .
566
566
567
- === "assert_http_response.py "
567
+ === "API Gateway REST API "
568
568
569
- ```python hl_lines="21-24"
570
- --8<-- "examples/event_handler_rest/src/assert_http_response.py"
571
- ```
569
+ === "assert_rest_api_resolver_response.py"
572
570
573
- === "assert_http_response_module.py"
571
+ ```python hl_lines="21-24"
572
+ --8<-- "examples/event_handler_rest/src/assert_rest_api_resolver_response.py"
573
+ ```
574
574
575
- ```python
576
- --8<-- "examples/event_handler_rest/src/assert_http_response_module.py"
577
- ```
575
+ === "assert_rest_api_response_module.py"
576
+
577
+ ```python
578
+ --8<-- "examples/event_handler_rest/src/assert_rest_api_response_module.py"
579
+ ```
580
+
581
+ === "API Gateway HTTP API"
582
+
583
+ === "assert_http_api_resolver_response.py"
584
+
585
+ ```python hl_lines="21-29"
586
+ --8<-- "examples/event_handler_rest/src/assert_http_api_resolver_response.py"
587
+ ```
588
+
589
+ === "assert_http_api_response_module.py"
590
+
591
+ ```python
592
+ --8<-- "examples/event_handler_rest/src/assert_http_api_response_module.py"
593
+ ```
594
+
595
+ === "Application Load Balancer"
596
+
597
+ === "assert_alb_api_resolver_response.py"
598
+
599
+ ```python hl_lines="21-24"
600
+ --8<-- "examples/event_handler_rest/src/assert_alb_api_resolver_response.py"
601
+ ```
602
+
603
+ === "assert_alb_api_response_module.py"
604
+
605
+ ```python
606
+ --8<-- "examples/event_handler_rest/src/assert_alb_api_response_module.py"
607
+ ```
608
+
609
+ === "Lambda Function URL"
610
+
611
+ === "assert_function_url_api_resolver_response.py"
612
+
613
+ ```python hl_lines="21-29"
614
+ --8<-- "examples/event_handler_rest/src/assert_function_url_api_resolver_response.py"
615
+ ```
616
+
617
+ === "assert_function_url_api_response_module.py"
618
+
619
+ ```python
620
+ --8<-- "examples/event_handler_rest/src/assert_function_url_api_response_module.py"
621
+ ```
578
622
579
623
## FAQ
580
624
0 commit comments