Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a simple template search method #83

Closed
uplateandonline opened this issue Aug 13, 2018 · 0 comments
Closed

Add a simple template search method #83

uplateandonline opened this issue Aug 13, 2018 · 0 comments
Milestone

Comments

@uplateandonline
Copy link

Add a simple template search method

Request Type

Feature Request

Work Environment

Question Answer
OS version (server) Ubuntu
OS version (client) Ubuntu
TheHive4py version / git hash be80a7d

Problem Description

It would be nice if there was the ability search for templates, as in:

+    def find_case_templates(self, **attributes):
+        """
+            :return: list of case templates
+            :rtype: json
+        """
+        return self.__find_rows("/api/case/template/_search", **attributes)
+

Steps to Reproduce

N/A

Possible Solutions

See above

Complementary information

I'll raise a PR unless there are any issues ..

uplateandonline added a commit to uplateandonline/TheHive4py that referenced this issue Aug 13, 2018
@nadouani nadouani added this to the 1.5.0 milestone Sep 24, 2018
nadouani pushed a commit that referenced this issue Sep 25, 2018
* Adding ability to search for templates, see #83

* Tidying up unused imports and removing dev API key

* Feature - adding ability to promote alert to case

* Tidying up the sample
nadouani pushed a commit that referenced this issue Sep 25, 2018
* Adding ability to search for templates, see #83

* Tidying up unused imports and removing dev API key
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants