mitchell852 commented on issue #2029: [Issue 1907] TO API for backup edge cachegroup URL: https://github.com/apache/incubator-trafficcontrol/pull/2029#issuecomment-378402232 @hongfeiweb - we're trying to move away from "route" or "path" parameters to remove some of the ambiguity that they have caused. Also, to condense our number of routes. For example, we have routes like this: GET /api/servers/{id} GET /api/servers/{hostname} We'd rather just have one route that supports multiple query params. GET /api/servers?id=4 or GET /api/servers?hostname=foo-bar It's not that I'm opposed to nested routes per se, but it's hard to have nested routes if you eliminate route/path parameters. I've updated the TO API guidelines to reflect our new approach to APIs as we move forward with Golang: https://cwiki.apache.org/confluence/display/TC/API+Guidelines
---------------------------------------------------------------- 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: [email protected] With regards, Apache Git Services
