Skip to content

Commit 93f050e

Browse files
committed
Resolves #458 - Add support for get all
1 parent 05e62e4 commit 93f050e

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

external/rest/create.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ func CreateInternal(ctx context.Context, overrides *httpclient.HttpParameterOver
118118

119119
// Check if error response
120120
if resp.StatusCode >= 400 && resp.StatusCode <= 600 {
121-
json.PrintJson(string(resBody))
121+
json.PrintJsonToStdout(string(resBody))
122122
return "", fmt.Errorf(resp.Status)
123123
}
124124

external/rest/get.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ func GetInternal(ctx context.Context, overrides *httpclient.HttpParameterOverrid
3535

3636
// Check if error response
3737
if resp.StatusCode >= 400 && resp.StatusCode <= 600 {
38-
json.PrintJson(string(body))
38+
json.PrintJsonToStdout(string(body))
3939
return "", fmt.Errorf(resp.Status)
4040
}
4141

external/rest/update.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ func UpdateInternal(ctx context.Context, overrides *httpclient.HttpParameterOver
8282

8383
// Check if error response
8484
if resp.StatusCode >= 400 && resp.StatusCode <= 600 {
85-
json.PrintJson(string(resBody))
85+
json.PrintJsonToStdout(string(resBody))
8686
return "", fmt.Errorf(resp.Status)
8787
}
8888

0 commit comments

Comments
 (0)