ocket8888 commented on a change in pull request #3870: Rewrite /capabilities to Go URL: https://github.com/apache/trafficcontrol/pull/3870#discussion_r333235112
########## File path: traffic_ops/client/capability.go ########## @@ -0,0 +1,121 @@ +package client + +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import "encoding/json" +import "fmt" +import "net" +import "net/http" + +import "github.com/apache/trafficcontrol/lib/go-tc" + +const API_v4_CAPABILITIES = "/api/1.4/capabilities" Review comment: well it oughta be v1.4 😏 ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
