add default for apiKeyRequired field on API Gateway methods
This commit is contained in:
parent
2599516d80
commit
8a51fbe1c9
3 changed files with 60 additions and 7 deletions
|
|
@ -145,8 +145,13 @@ class APIGatewayResponse(BaseResponse):
|
|||
return 200, {}, json.dumps(method)
|
||||
elif self.method == "PUT":
|
||||
authorization_type = self._get_param("authorizationType")
|
||||
api_key_required = self._get_param("apiKeyRequired")
|
||||
method = self.backend.create_method(
|
||||
function_id, resource_id, method_type, authorization_type
|
||||
function_id,
|
||||
resource_id,
|
||||
method_type,
|
||||
authorization_type,
|
||||
api_key_required,
|
||||
)
|
||||
return 200, {}, json.dumps(method)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue