ocket8888 opened a new issue #2956: Erroneous error from /api/1.3/coordinates 
when updating a coordinate
URL: https://github.com/apache/trafficcontrol/issues/2956
 
 
   ```
   $ curl -skb lab-cookie.jar -X PUT -d '{"id": 10, "name": "testquest", 
"latitude": -90, "longitude": 180}' "https://<lab 
machine>:6443/api/1.4/coordinates" | jq .
   {
        "alerts": [
                {
                        "text": "missing key: id",
                        "level": "error"
                }
        ]
   }
    $ curl -skb lab-cookie.jar "https://<lab 
machine>:6443/api/1.4/coordinates?name=testquest" | jq .                        
                          
   {
        "response": [
                {
                        "id": 10,
                        "name": "testquest",
                        "latitude": 0,
                        "longitude": 0,
                        "lastUpdated": "2018-10-25 16:40:33+00"
                }
        ]
   }
   ```
   same data works fine when submitting a POST to create a coordinate pair, but 
for some reason PUT is unable to find the "id" key.

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

Reply via email to