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/07/18 16:57:15 UTC

[GitHub] dangogh opened a new issue #2556: TO Go: profileparameters endpoint has different JSON form Perl vs Go

dangogh opened a new issue #2556: TO Go: profileparameters endpoint has different JSON form Perl vs Go
URL: https://github.com/apache/trafficcontrol/issues/2556
 
 
   the JSON output `api/1.1/profileparameters` is different from the Perl implementation to the Go implementation.   Arguably,  the new Go one is preferable,  but it's an API change that shouldn't be made without major API version change.
   
   Perl version looks like this:
   ```
   {
     "response": [
       {
         "parameter": 277,
         "profile": "MID",
         "lastUpdated": "2017-10-08 19:34:45+00"
       },
   ...
   ```
   whereas the Go version looks like this:
   ```
   {
     "response": [
       {
         "lastUpdated": "2017-10-08 19:34:45+00",
         "profile": "MID",
         "profileId": 5,
         "parameter": "location",
         "parameterId": 277
       },
   ```

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