mitchell852 commented on issue #2029: [Issue 1907] TO API for backup edge cachegroup URL: https://github.com/apache/incubator-trafficcontrol/pull/2029#issuecomment-381688309 @Vijay-1 - I think you need to rethink your design of this feature. The way you have it built will be very difficult to incorporate into the Traffic Portal which uses POSTs for create only and PUTs for update. Here are my suggestions: GET /cachegroup_fallbacks[?id=|?cachegroupId=|?fallbackId=] - Get all cachegroup fallbacks - Get a specific cachegroup fallback - Get all cachegroup fallbacks for a cg - Get all cgs for a fallback POST /cachegroup_fallbacks [ { "cacheGroupId": 1, "fallbackId": 27, "fallbackOrder": 10 }, {...} ] - create one or more fallbacks (no deleting existing fallbacks with this route) - no query param on this route. use the cacheGroupId param to determine which cachegroup to create fallback for. PUT /cachegroup_fallbacks[?id=] { "cacheGroupId": 1, "fallbackId": 27, "fallbackOrder": 42 } - update a cachegroup fallback by id DELETE /cachegroup_fallbacks[?id=|cachegroupId=] - delete a specific fallback - delete all fallbacks for a cachegroup
---------------------------------------------------------------- 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: us...@infra.apache.org With regards, Apache Git Services