Support greedy resource path
This commit is contained in:
parent
3cf45b7838
commit
55a1c2fb59
@ -556,7 +556,7 @@ class APIGatewayBackend(BaseBackend):
|
|||||||
return resource
|
return resource
|
||||||
|
|
||||||
def create_resource(self, function_id, parent_resource_id, path_part):
|
def create_resource(self, function_id, parent_resource_id, path_part):
|
||||||
if not re.match("^\\{?[a-zA-Z0-9._-]+\\}?$", path_part):
|
if not re.match("^\\{?[a-zA-Z0-9._-]+\\+?\\}?$", path_part):
|
||||||
raise InvalidResourcePathException()
|
raise InvalidResourcePathException()
|
||||||
api = self.get_rest_api(function_id)
|
api = self.get_rest_api(function_id)
|
||||||
child = api.add_child(path=path_part, parent_id=parent_resource_id)
|
child = api.add_child(path=path_part, parent_id=parent_resource_id)
|
||||||
|
Loading…
Reference in New Issue
Block a user