Enhancement : API-Gateway Put Integration Response - Adding support f… (#3058)
* Enhancement : API-Gateway Put Integration Response - Adding support for contentHandling. * Added tests where the contentHandling is None also gets tested. * Linting Co-authored-by: usmankb <usman@krazybee.com> Co-authored-by: Bert Blommers <info@bertblommers.nl>
This commit is contained in:
parent
e32a60185f
commit
b1d515c929
3 changed files with 73 additions and 4 deletions
|
|
@ -387,6 +387,7 @@ class APIGatewayResponse(BaseResponse):
|
|||
elif self.method == "PUT":
|
||||
selection_pattern = self._get_param("selectionPattern")
|
||||
response_templates = self._get_param("responseTemplates")
|
||||
content_handling = self._get_param("contentHandling")
|
||||
integration_response = self.backend.create_integration_response(
|
||||
function_id,
|
||||
resource_id,
|
||||
|
|
@ -394,6 +395,7 @@ class APIGatewayResponse(BaseResponse):
|
|||
status_code,
|
||||
selection_pattern,
|
||||
response_templates,
|
||||
content_handling,
|
||||
)
|
||||
elif self.method == "DELETE":
|
||||
integration_response = self.backend.delete_integration_response(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue