From 9ee24d579f2cfa79b8a1017ea80460b8f4352302 Mon Sep 17 00:00:00 2001 From: Adnan Gulegulzar Date: Sun, 15 Sep 2024 18:20:34 -0400 Subject: [PATCH] fix: updated api endpoint --- cmd/get/benchmarks.go | 5 +++-- cmd/get/controls.go | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/cmd/get/benchmarks.go b/cmd/get/benchmarks.go index 172756e..67748af 100644 --- a/cmd/get/benchmarks.go +++ b/cmd/get/benchmarks.go @@ -6,10 +6,11 @@ package get import ( "encoding/json" "fmt" - "github.com/adorigi/opengovernance/pkg/output/tables" "io" "net/http" + "github.com/adorigi/opengovernance/pkg/output/tables" + "github.com/adorigi/opengovernance/pkg/config" "github.com/adorigi/opengovernance/pkg/request" "github.com/adorigi/opengovernance/pkg/types" @@ -53,7 +54,7 @@ to quickly create a Cobra application.`, configuration.ApiKey, configuration.ApiEndpoint, "POST", - "main/compliance/api/v2/benchmarks", + "main/compliance/api/v3/benchmarks", payload, ) if err != nil { diff --git a/cmd/get/controls.go b/cmd/get/controls.go index af73805..4231b3d 100644 --- a/cmd/get/controls.go +++ b/cmd/get/controls.go @@ -59,7 +59,7 @@ to quickly create a Cobra application.`, configuration.ApiKey, configuration.ApiEndpoint, "POST", - "main/compliance/api/v2/controls", + "main/compliance/api/v3/controls", payload, ) if err != nil {