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 2019/02/20 15:42:18 UTC

[GitHub] rob05c opened a new issue #3341: Fix Traffic Ops Golang CRUDer framework to query and return values for POST, PUT

rob05c opened a new issue #3341: Fix Traffic Ops Golang CRUDer framework to query and return values for POST, PUT
URL: https://github.com/apache/trafficcontrol/issues/3341
 
 
   The TO API defines POST and PUT to return the object, for most endpoints, but the CRUDer Framework doesn't, it just returns an empty success response.
   
   I don't think it'll be that difficult to make the CRUDer Framework do this, by adding it to the `GenericCreate` and `GenericUpdate` funcs to expect an object to be returned from SQL and populate it, via the existing `sqlx` tags, and add that to each query via `RETURNING`.
   
   This might ought to be tagged `bug`, it's a bug that the API is missing this from `1.x` where it existed before.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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