Documentation for GET /service appears incorrect


#1

The documentation for the GET /service endpoint shows an example response that includes the field: active_version, however when requesting that over using curl I’m seeing it called version, eg:

curl -H "Fastly-Key: <removed>" -X GET https://api.fastly.com/service | json_pp

[
   {
      "version" : 1,
      "id" : "33PLfsD6KIPhWTpxNtcnLC",
      "versions" : [
         {
            "service" : "33PLfsD6KIPhWTpxNtcnLC",
            "active" : null,
            "staging" : null,
            "number" : "1",
            "locked" : "0",
            "deleted_at" : null,
            "testing" : null,
            "comment" : "",
            "updated_at" : "2016-02-04T17:19:05",
            "inherit_service_id" : null,
            "service_id" : "33PLfsD6KIPhWTpxNtcnLC",
            "created_at" : "2016-02-04T17:19:05",
            "deployed" : null
         }
      ],
      "customer_id" : "6YVnzlqFNmaB5wLJq48whp",
      "name" : "example.com",
      "comment" : "Service for example.com"
   },
   ...
]

Please could you clarify or update the documentation as required?


#2

Hi Paul,

Thanks for sending that our way. What you’re seeing when using curl is the correct output, we’ll update the docs to match.

Cheers,
Kami