This commit is contained in:
2023-06-23 15:13:22 +03:00
parent c06a3198f6
commit 264538f492
50 changed files with 2143 additions and 76 deletions

View File

@@ -0,0 +1,26 @@
package apiaccess
import (
"context"
"encoding/json"
"net/http"
)
// GetFull gets full current endpoints dictionary
func (a APIAccess) GetFull(ctx context.Context) (*APIsEndpoints, error) {
url := "/cloudbroker/apiaccess/getFull"
info := APIsEndpoints{}
res, err := a.client.DecortApiCall(ctx, http.MethodPost, url, nil)
if err != nil {
return nil, err
}
err = json.Unmarshal(res, &info)
if err != nil {
return nil, err
}
return &info, nil
}