Skip to content

Commit

Permalink
#150 Fix methods documentation in TheHiveApi class
Browse files Browse the repository at this point in the history
  • Loading branch information
nadouani committed May 24, 2020
1 parent ea5976f commit de2b94d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions thehive4py/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def create_case(self, case):
:param case: The case details
:type case: Case defined in models.py
:return: TheHive case
:rtype: json
:rtype: requests.Response
"""

req = self.url + "/api/case"
Expand Down Expand Up @@ -144,7 +144,7 @@ def create_case_task(self, case_id, case_task):
:param case_task: TheHive task
:type case_task: CaseTask defined in models.py
:return: TheHive task
:rtype: json
:rtype: requests.Response
"""

Expand Down Expand Up @@ -185,7 +185,7 @@ def create_task_log(self, task_id, case_task_log):
:param case_task_log: TheHive log
:type case_task_log: CaseTaskLog defined in models.py
:return: TheHive log
:rtype: json
:rtype: requests.Response
"""

req = self.url + "/api/case/task/{}/log".format(task_id)
Expand All @@ -210,7 +210,7 @@ def create_case_observable(self, case_id, case_observable):
:param case_observable: TheHive observable
:type case_observable: CaseObservable defined in models.py
:return: TheHive observable
:rtype: json
:rtype: requests.Response
"""

req = self.url + "/api/case/{}/artifact".format(case_id)
Expand Down Expand Up @@ -437,7 +437,7 @@ def create_alert(self, alert):
:param alert: TheHive alert
:type alert: Alert defined in models.py
:return: TheHive alert
:rtype: json
:rtype: requests.Response
"""

req = self.url + "/api/alert"
Expand Down

0 comments on commit de2b94d

Please sign in to comment.