BatchRun: support GET APIs
gkzz opened this issue · 3 comments
Describe our problem
We have no ways to call, with magicpod-api-client
, GET the following BatchRun APIs;
/v1.0/{organization_name}/{project_name}/batch-run/{batch_run_number}/
/v1.0/{organization_name}/{project_name}/batch-runs/
src: https://magic-pod.com/api/v1.0/doc/
The only way to get the BatchRun's results is to call the APIs directory with curl command, or something :(
Proposed Solution
- All we have to do in order to get BatchRun's results and the test-cases' results is to execute it only once.
- Once we execute it,
magicpod-api-client
calls/v1.0/{organization_name}/{project_name}/batch-runs/
API and/v1.0/{organization_name}/{project_name}/batch-run/{batch_run_number}/
APIs repeatedly for number of{batch_run_number}
s.
- Once we execute it,
Clues to solve the problem
- We've already have the functions to call these APIs
/v1.0/{organization_name}/{project_name}/batch-run/{batch_run_number}/
magicpod-api-client/common/common.go
Lines 180 to 187 in 9bf6921
/v1.0/{organization_name}/{project_name}/batch-runs/
magicpod-api-client/common/common.go
Lines 197 to 201 in 9bf6921
- These functions are inner ones
magicpod-api-client/magicpod-api-client.go
Lines 136 to 143 in 9bf6921
magicpod-api-client/magicpod-api-client.go
Lines 271 to 282 in 9bf6921
Thank you for informative suggestion! As for /v1.0/{organization_name}/{project_name}/batch-run/{batch_run_number}/
, it seems that utilizing GetBatchRun
is the key. I'm trying to partially resolve it with #8.
Thx always :)
I'll re-open one, when I'm faced with problems.
Sorry, we've not yet supported /v1.0/{organization_name}/{project_name}/batch-runs/
.
Let me reopen now.