You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficcontrol.apache.org by GitBox <gi...@apache.org> on 2020/03/12 18:05:38 UTC

[GitHub] [trafficcontrol] shamrickus commented on a change in pull request #4477: Deprecate parameters/profile/:name

shamrickus commented on a change in pull request #4477: Deprecate parameters/profile/:name
URL: https://github.com/apache/trafficcontrol/pull/4477#discussion_r391800663
 
 

 ##########
 File path: traffic_ops/traffic_ops_golang/profileparameter/parameterprofilebyname.go
 ##########
 @@ -22,20 +22,59 @@ package profileparameter
 import (
 	"database/sql"
 	"errors"
+	"github.com/apache/trafficcontrol/lib/go-util"
 	"net/http"
 
 	"github.com/apache/trafficcontrol/lib/go-tc"
 	"github.com/apache/trafficcontrol/traffic_ops/traffic_ops_golang/api"
 )
 
+const API_PROFILES_NAME_NAME_PARAMETERS = "profiles/name/:name/parameters"
+
+func GetProfileNameDeprecated(w http.ResponseWriter, r *http.Request) {
+	getProfileName(w, r, true)
+}
+
 func GetProfileName(w http.ResponseWriter, r *http.Request) {
+	getProfileName(w, r, false)
+}
+
+func deprecationString(deprecated bool) *string {
 
 Review comment:
   I like the idea, that's what I was originally trying to do with my change to HandleDeprecatedErr.
   

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services