jagan-parthiban commented on code in PR #7408:
URL: https://github.com/apache/trafficcontrol/pull/7408#discussion_r1140153005


##########
traffic_ops/traffic_ops_golang/api/generic_crud.go:
##########
@@ -153,6 +162,48 @@ func GenericCreateNameBasedID(val GenericCreator) (error, 
error, int) {
        return nil, nil, http.StatusOK
 }
 
+// GenericCreateNameBasedIDV5 does a Create (POST) for the given 
GenericCreatorV5 object and type. This exists as a generic function, for the 
use case of a single "name" key (not a numerical "id" key) and a lastUpdated 
field.
+func GenericCreateNameBasedIDV5(val GenericCreatorV5) (error, error, int) {

Review Comment:
   GenericCreateNameBasedIDV5 is created to be used only by V5 apis and clients 
that makes use of tc.TimeRFC3339{} struct



-- 
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.

To unsubscribe, e-mail: issues-unsubscr...@trafficcontrol.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to