I think at one point there was some effort to expose some of that with the
"rawRequest" func, not sure who created a lot of these, I have just been
using what was there for the API Tests.  I think we do need to do some
refactoring to expose more for proper API Testing.

https://github.com/apache/incubator-trafficcontrol/blob/master/traffic_ops/client/v13/session.go#L285

-Dew

On Wed, Apr 25, 2018 at 3:53 PM, Rawlin Peters <[email protected]>
wrote:

> Hey folks,
>
> I noticed in our TO go client that we aren't decoding the JSON
> response returned from PUT/POST endpoints. If we actually decoded
> those responses, it would be quicker and more useful from a user's
> perspective, save bandwidth from all the unnecessary GETs after
> POST/PUTs, and also reduce load on the API server.
>
> Is there a reason why we don't decode those responses?
>
> - Rawlin
>

Reply via email to