Skip to content

Commit 4c6fd58

Browse files
committed
finished actuator api
1 parent b0f3296 commit 4c6fd58

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

ThreadFixProApi/Networks/_utils/_actuator.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,11 @@ def __init__(self, host, api_key, verify_ssl, timeout, headers, user_agent, cert
2121
the private key and the certificate) or as a tuple of both file’s path
2222
:param debug: Prints requests and responses, useful for debugging.
2323
"""
24-
super().__init__(host, api_key, verify_ssl, timeout, headers, user_agent, cert, debug)
24+
super().__init__(host, api_key, verify_ssl, timeout, headers, user_agent, cert, debug)
25+
26+
def get_version_info(self, page):
27+
"""
28+
Gets version of Threadfix page
29+
:param page: page to get version of.
30+
"""
31+
return super().request('GET', f'/actuator/{page}')

0 commit comments

Comments
 (0)