List the ID and name of all version elements in JSON format

Returns a JSON array of JSON objects containing the IDs and names of all version elements. This is equivalent to GET /version/?format=name. Note that for element types that do not have a "name" property, the "list" format will be used instead.

Request

GET http://{hostname}:{port}
  /versions/name
Accept: application/json
Table 1. Header parameters
Parameter Type Required Description
Accept application/json true

Example

curl -k -u jsmith:passwd  
  "http://myserver.example.com:8080/versions/name

Example response

[
  {
    "id": "2a6be744-219b-4a23-836e-604f8f4d8f68",
    "name": "3.0"
  },
  {
    "id": "72fe82c0-e835-4780-99c1-6cde1e7cb12b",
    "name": "2.1"
  },
  {
    "id": "f325b648-ca6b-4f17-86ec-d24bee1234b3",
    "name": "2.0"
  }
]