Skip to content
Snippets Groups Projects
Commit f0212bcc authored by Aaron Weaver's avatar Aaron Weaver
Browse files

wildcard search for tools

parent c5a53bd8
Branches
Tags 1.1.0
No related merge requests found
__version__ = '1.0.9'
__version__ = '1.1.0'
......@@ -832,7 +832,7 @@ class DefectDojoAPI(object):
return self._request('GET', 'tool_types/', params)
def list_tools(self, resource_id=None, name=None, tool_type_id=None, url=None, limit=20):
def list_tools(self, resource_id=None, name=None, tool_type_id=None, url=None, name_icontains=None, limit=20):
"""Retrieves all the tool configurations.
:param name_contains: Search by tool name.
......@@ -858,6 +858,9 @@ class DefectDojoAPI(object):
if tool_type_id:
params['url__contains'] = tool_type_id
if name_icontains:
params['name__icontains'] = name_icontains
return self._request('GET', 'tool_configurations/', params)
def list_tool_products(self, resource_id=None, url=None, name=None, tool_configuration_id=None,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment