List all of the initiative elements in JSON format
This method returns a JSON array representation of the elements of the initiative type. You can specify how the response JSON is formatted with the "format" parameter.
Request
GET http://{hostname}:{port}
/initiatives/?{parameters}
Accept: application/json
Parameter | Type | Required | Description |
---|---|---|---|
format | string | false | One of the format options; this parameter determines what information is included in the JSON response. If not specified, or if an unrecognized value is specified, the default format of "list" will be used. |
Parameter | Type | Required | Description |
---|---|---|---|
Accept | application/json |
true |
For the format parameter, use one of the following format options:
list
- Primary properties
detail
- Primary properties and applications, releases and changes with related integration info
externalIntegrationDetails
- Primary properties and integration information
externalIntegrationLight
- Lighter version of the initiative Json Object with external id and url and Integration Provider id and name
Example
curl -k -u jsmith:passwd
"http://myserver.example.com:8080/initiatives/"
-X GET -H "Accept: application/json"
Example response
[
{
"description": "My init",
"name": "InitA",
"id": "c1e7dd8f-b1fc-41ea-8d73-a120da8d9999",
"version": 0,
"dateCreated": 1413559219120
},
{
"description": "Another init",
"name": "InitB",
"id": "30873ef0-c9f3-4af3-a4dd-eedda71c9bbf",
"version": 0,
"dateCreated": 1413559224354
},
{
"description": "Description of Initiative A",
"name": "Initiative A",
"id": "c8a27884-c033-4f9f-8dcd-3a745a9e6f1b",
"version": 0,
"dateCreated": 1413561711592
},
{
"description": "Description of Initiative B",
"name": "Initiative B",
"id": "a991444e-8b8a-4668-95f7-b641b466648f",
"version": 0,
"dateCreated": 1413562071540
}
]