implements APIGateway update_api_key
This commit is contained in:
parent
5c34c06d07
commit
7fa5ce3dc3
5 changed files with 47 additions and 3 deletions
|
|
@ -245,6 +245,9 @@ class APIGatewayResponse(BaseResponse):
|
|||
|
||||
if self.method == 'GET':
|
||||
apikey_response = self.backend.get_apikey(apikey)
|
||||
elif self.method == 'PATCH':
|
||||
patch_operations = self._get_param('patchOperations')
|
||||
apikey_response = self.backend.update_apikey(apikey, patch_operations)
|
||||
elif self.method == 'DELETE':
|
||||
apikey_response = self.backend.delete_apikey(apikey)
|
||||
return 200, {}, json.dumps(apikey_response)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue