Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
defectdojo_api
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Raul Barreras
defectdojo_api
Commits
c5a53bd8
Commit
c5a53bd8
authored
7 years ago
by
Aaron Weaver
Browse files
Options
Downloads
Patches
Plain Diff
Adding ID search to tools
parent
69426986
Branches
Branches containing commit
Tags
1.0.9
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
defectdojo_api/__init__.py
+1
-1
1 addition, 1 deletion
defectdojo_api/__init__.py
defectdojo_api/defectdojo.py
+9
-9
9 additions, 9 deletions
defectdojo_api/defectdojo.py
with
10 additions
and
10 deletions
defectdojo_api/__init__.py
+
1
−
1
View file @
c5a53bd8
__version__
=
'
1.0.
8
'
__version__
=
'
1.0.
9
'
This diff is collapsed.
Click to expand it.
defectdojo_api/defectdojo.py
+
9
−
9
View file @
c5a53bd8
...
...
@@ -812,7 +812,7 @@ class DefectDojoAPI(object):
###### Tool API #######
def
list_tool_types
(
self
,
id
=
None
,
name
=
None
,
limit
=
20
):
def
list_tool_types
(
self
,
resource_
id
=
None
,
name
=
None
,
limit
=
20
):
"""
Retrieves all the tool types.
:param name_contains: Search by tool type name.
...
...
@@ -824,15 +824,15 @@ class DefectDojoAPI(object):
if
limit
:
params
[
'
limit
'
]
=
limit
if
id
:
params
[
'
id
'
]
=
id
if
resource_
id
:
params
[
'
id
'
]
=
resource_
id
if
name
:
params
[
'
name__contains
'
]
=
name
return
self
.
_request
(
'
GET
'
,
'
tool_types/
'
,
params
)
def
list_tools
(
self
,
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
,
limit
=
20
):
"""
Retrieves all the tool configurations.
:param name_contains: Search by tool name.
...
...
@@ -846,8 +846,8 @@ class DefectDojoAPI(object):
if
limit
:
params
[
'
limit
'
]
=
limit
if
id
:
params
[
'
id
'
]
=
id
if
resource_
id
:
params
[
'
id
'
]
=
resource_
id
if
name
:
params
[
'
name
'
]
=
name
...
...
@@ -860,7 +860,7 @@ class DefectDojoAPI(object):
return
self
.
_request
(
'
GET
'
,
'
tool_configurations/
'
,
params
)
def
list_tool_products
(
self
,
url
=
None
,
name
=
None
,
tool_configuration_id
=
None
,
def
list_tool_products
(
self
,
resource_id
=
None
,
url
=
None
,
name
=
None
,
tool_configuration_id
=
None
,
tool_project_id
=
None
,
product_id
=
None
,
limit
=
20
):
"""
Retrieves all the tools.
...
...
@@ -877,8 +877,8 @@ class DefectDojoAPI(object):
if
limit
:
params
[
'
limit
'
]
=
limit
if
id
:
params
[
'
id
'
]
=
id
if
resource_
id
:
params
[
'
id
'
]
=
resource_
id
if
name
:
params
[
'
name
'
]
=
name
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment