From 656ff1e621f9403c6b0bc80f372be5eb63e55b85 Mon Sep 17 00:00:00 2001 From: Denis Arslanbekov Date: Thu, 11 Jan 2024 16:05:49 +0000 Subject: [PATCH] Fix tests --- cloudconnexa/ip_service.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cloudconnexa/ip_service.go b/cloudconnexa/ip_service.go index 389cbcd..6f0531d 100644 --- a/cloudconnexa/ip_service.go +++ b/cloudconnexa/ip_service.go @@ -139,7 +139,7 @@ func (c *Client) UpdateIPService(id string, service *IPService) (*IPService, err return nil, err } - endpoint := fmt.Sprintf("%s/api/beta/ip-services/%s?%s", c.BaseURL, id) + endpoint := fmt.Sprintf("%s/api/beta/ip-services/%s", c.BaseURL, id) req, err := http.NewRequest(http.MethodPut, endpoint, bytes.NewBuffer(serviceJson)) if err != nil { @@ -160,7 +160,7 @@ func (c *Client) UpdateIPService(id string, service *IPService) (*IPService, err } func (c *Client) DeleteIPService(ipServiceId string) error { - endpoint := fmt.Sprintf("%s/api/beta/ip-services/%s?%s", c.BaseURL, ipServiceId) + endpoint := fmt.Sprintf("%s/api/beta/ip-services/%s", c.BaseURL, ipServiceId) req, err := http.NewRequest(http.MethodDelete, endpoint, nil) if err != nil { return err