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 2018/12/03 16:52:49 UTC

[GitHub] rawlinp commented on issue #3077: POST method on /api/1.x/federations does not work

rawlinp commented on issue #3077: POST method on /api/1.x/federations does not work
URL: https://github.com/apache/trafficcontrol/issues/3077#issuecomment-443782211
 
 
   It looks like your POST request body is not right per https://traffic-control-cdn.readthedocs.io/en/latest/api/v12/federation.html:
   ```
   {
     "federations": [
       {
         "deliveryService": "ccp-omg-01",
         "mappings": {
           "resolve4": [
             "255.255.255.255"
           ],
           "resolve6": [
             "FE80::0202:B3FF:FE1E:8329",
           ]
         }
       }
     ]
   }
   ```
   The code iterates over 0..N federations and returns a 200 as long as it doesn't encounter an error. So what it appears to be doing is giving you back a 200 since you're not giving it any federations to iterate over. Can you try structuring your request like this and see if that works as expected? We should probably also change the message to say "no federation resolvers were created", but I'm not sure we can change the status code from a 200 since that's how the endpoint has always worked.

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