Skip to content

Commit 878e686

Browse files
authored
fix: switched API client routes to full routes (#42)
- summary routes were missing some required attributes - routes are intended and include additional details
1 parent 4d03a2e commit 878e686

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

dreadnode/api/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,11 +128,11 @@ def get_run(self, run: str | ULID) -> Run:
128128
return Run(**response.json())
129129

130130
def get_run_tasks(self, run: str | ULID) -> list[Task]:
131-
response = self.request("GET", f"/strikes/projects/runs/{run!s}/tasks")
131+
response = self.request("GET", f"/strikes/projects/runs/{run!s}/tasks/full")
132132
return [Task(**task) for task in response.json()]
133133

134134
def get_run_trace(self, run: str | ULID) -> list[Task | TraceSpan]:
135-
response = self.request("GET", f"/strikes/projects/runs/{run!s}/spans")
135+
response = self.request("GET", f"/strikes/projects/runs/{run!s}/spans/full")
136136
spans: list[Task | TraceSpan] = []
137137
for item in response.json():
138138
if "parent_task_span_id" in item:

0 commit comments

Comments
 (0)