(operatorConfig OperatorConfig, endpoint string, qParams ...map[string]string)
| 46 | } |
| 47 | |
| 48 | func HTTPGet(operatorConfig OperatorConfig, endpoint string, qParams ...map[string]string) ([]byte, error) { |
| 49 | req, err := operatorRequest(operatorConfig, "GET", endpoint, nil, qParams...) |
| 50 | if err != nil { |
| 51 | return nil, err |
| 52 | } |
| 53 | return makeOperatorRequest(operatorConfig, req) |
| 54 | } |
| 55 | |
| 56 | func HTTPPostObjAsJSON(operatorConfig OperatorConfig, endpoint string, requestData interface{}, qParams ...map[string]string) ([]byte, error) { |
| 57 | jsonRequestData, err := json.Marshal(requestData) |
no test coverage detected