implements APIGateway update_api_key

This commit is contained in:
Chiharu Terashima 2019-08-03 01:28:47 +09:00
commit 7fa5ce3dc3
5 changed files with 47 additions and 3 deletions

View file

@ -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)