This is an automated email from the ASF dual-hosted git repository. mitchell852 pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-trafficcontrol.git
commit eab39fb78113c580d2c3597409059c66ba39f806 Author: Dewayne Richardson <dewr...@apache.org> AuthorDate: Fri Apr 6 14:15:53 2018 -0600 updated the routes per the API guidelines --- traffic_ops/client/v13/profile_parameter.go | 2 +- traffic_ops/traffic_ops_golang/routes.go | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/traffic_ops/client/v13/profile_parameter.go b/traffic_ops/client/v13/profile_parameter.go index f4af45e..5f9b558 100644 --- a/traffic_ops/client/v13/profile_parameter.go +++ b/traffic_ops/client/v13/profile_parameter.go @@ -26,7 +26,7 @@ import ( ) const ( - API_v13_Profile_Parameters = "/api/1.3/profileparameters" + API_v13_Profile_Parameters = "/api/1.3/profile_parameters" ProfileIdQueryParam = "profileId" ParameterIdQueryParam = "parameterId" ) diff --git a/traffic_ops/traffic_ops_golang/routes.go b/traffic_ops/traffic_ops_golang/routes.go index 6eac8bc..1551d2c 100644 --- a/traffic_ops/traffic_ops_golang/routes.go +++ b/traffic_ops/traffic_ops_golang/routes.go @@ -193,10 +193,10 @@ func Routes(d ServerData) ([]Route, http.Handler, error) { {1.3, http.MethodDelete, `profiles-wip/{id}$`, api.DeleteHandler(profile.GetRefType(), d.DB), auth.PrivLevelOperations, Authenticated, nil}, //ProfileParameters - {1.3, http.MethodGet, `profileparameters/?(\.json)?$`, api.ReadHandler(profileparameter.GetRefType(), d.DB), auth.PrivLevelReadOnly, Authenticated, nil}, - {1.3, http.MethodGet, `profileparameters/{id}$`, api.ReadHandler(profileparameter.GetRefType(), d.DB), auth.PrivLevelReadOnly, Authenticated, nil}, - {1.3, http.MethodPost, `profileparameters/?$`, api.CreateHandler(profileparameter.GetRefType(), d.DB), auth.PrivLevelOperations, Authenticated, nil}, - {1.3, http.MethodDelete, `profilesparameters/{id}$`, api.DeleteHandler(profileparameter.GetRefType(), d.DB), auth.PrivLevelOperations, Authenticated, nil}, + {1.3, http.MethodGet, `profile_parameters/?(\.json)?$`, api.ReadHandler(profileparameter.GetRefType(), d.DB), auth.PrivLevelReadOnly, Authenticated, nil}, + {1.3, http.MethodGet, `profile_parameters/{id}$`, api.ReadHandler(profileparameter.GetRefType(), d.DB), auth.PrivLevelReadOnly, Authenticated, nil}, + {1.3, http.MethodPost, `profile_parameters/?$`, api.CreateHandler(profileparameter.GetRefType(), d.DB), auth.PrivLevelOperations, Authenticated, nil}, + {1.3, http.MethodDelete, `profile_parameters/{id}$`, api.DeleteHandler(profileparameter.GetRefType(), d.DB), auth.PrivLevelOperations, Authenticated, nil}, //SSLKeys deliveryservice endpoints here that are marked marked as '-wip' need to have tenancy checks added {1.2, http.MethodGet, `deliveryservices-wip/xmlId/{xmlID}/sslkeys$`, getDeliveryServiceSSLKeysByXMLIDHandler(d.DB, d.Config), auth.PrivLevelAdmin, Authenticated, nil}, -- To stop receiving notification emails like this one, please contact mitchell...@apache.org.