Skip to content
This repository was archived by the owner on Feb 6, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
84 changes: 79 additions & 5 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions src/geekbot_api/clients/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,29 +28,29 @@ def __init__(

def _http_get(self, path: str = "") -> Response:
"""Does a get against the geekbot api, adds "path" to the end of self.api_path"""
r = requests.get(self._get_request_path(path), headers=self.headers)
r = requests.get(self._get_request_path(path), headers=self.headers) # nosec: B113
return r

def _http_put(self, data: Dict, path: str = "") -> Response:
"""Does a put against the geekbot api, adds "path" to the end of self.api_path"""
r = requests.put(self._get_request_path(path), json=data, headers=self.headers)
r = requests.put(self._get_request_path(path), json=data, headers=self.headers) # nosec: B113
return r

def _http_post(self, data: Dict, path: str = "") -> Response:
"""Does a post against the geekbot api, adds "path" to the end of self.api_path"""
r = requests.post(self._get_request_path(path), json=data, headers=self.headers)
r = requests.post(self._get_request_path(path), json=data, headers=self.headers) # nosec: B113
return r

def _http_patch(self, data: Dict, path: str = "") -> Response:
"""Does a post against the geekbot api, adds "path" to the end of self.api_path"""
r = requests.patch(
self._get_request_path(path), json=data, headers=self.headers
self._get_request_path(path), json=data, headers=self.headers # nosec: B113
)
return r

def _http_delete(self, path: str) -> Response:
"""Does a post against the geekbot api, adds "path" to the end of self.api_path"""
r = requests.delete(self._get_request_path(path), headers=self.headers)
r = requests.delete(self._get_request_path(path), headers=self.headers) # nosec: B113
return r

@lru_cache(maxsize=None)
Expand Down