mitchell852 edited a comment on issue #3964: Add GET/POST/DELETE for 
server_server_capabilities
URL: https://github.com/apache/trafficcontrol/pull/3964#issuecomment-540051772
 
 
   > yep! @mitchell852 that would look like:
   > 
   > ```
   >    {
   >            "response": [
   >                    {
   >                            "lastUpdated": "2019-10-05 22:05:31+00",
   >                            "serverHostName": "foco-1",
   >                            "serverId": 1,
   >                            "serverCapability": "foo"
   >                    },
   >                    {
   >                            "lastUpdated": "2019-10-08 22:05:31+00",
   >                            "serverHostName": "foco-2",
   >                            "serverId": 2,
   >                            "serverCapability": "foo"
   >                    },
   >                    {
   >                            "lastUpdated": "2019-10-10 22:05:31+00",
   >                            "serverHostName": "loveland",
   >                            "serverId": 3,
   >                            "serverCapability": "foo"
   >                    }
   >            ]
   >    }
   > ```
   
   so that will leave the UI pretty lean. i.e. I will only be able to show the 
hostnames of the servers that use the capability and maybe that's fine. What do 
you think @rob05c 
   
   This format will increase the response size obviously but will provide more 
data that can be used in TP:
   
   ```
   [
       {
           "lastUpdated": "2019-10-10 22:05:31+00",
           "server": {
               "hostName": "loveland",
               "id": 3,
               ... rest of the server properties ...
           }
           "serverCapability": "foo"
       },
       ...
   ]
   ```

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

Reply via email to