To retrieve a list of Test Plans, an application submits an HTTP GET request to the URL that represents the Test Plan resource.
/testplan
GET
The response header includes the following information:
Field | Description |
---|---|
Content-Type | The content type and character encoding of the response. |
Content-Length | The length of the retrieved content. |
The response body contains a list containing the following elements in JSON format:
Element | Description |
---|---|
id | An alphanumeric value that uniquely identifies the Test Plan. |
name | Name of the Test Plan. |
description | Description of the Test Plan. |
createdAt | A dateTime value that specifies the date and time the session was created. |
updatedAt | A dateTime value that specifies the date and time the session was last modified. |
rules | An integer value that specifies the number of rules associated to the Test Plan. |
Status Code | Description |
---|---|
200-299 | The request was successful. The list of Test Plans are in the response body. |
400 | Bad request. Typically returned if required information was not provided as input. |
500-599 | Server error. |
[
{
"id": "54edbcd9eb90892f5eed9129",
"name": "Amazon S3 Test Plan",
"description": "My test plan for Amazon S3...",
"rules": 42,
"createdAt": "2014-02-12 03:34:51",
"updatedAt": "2014-02-12 03:34:51"
},
{
"id": "h34b5k3425kl45b2345b3245b",
"name": "Test Plan for Swift",
"description": "bla bla bla bla bla blaaaa...",
"rules": 654,
"createdAt": "2014-02-12 03:34:51",
"updatedAt": "2014-02-12 03:34:51"
}
]
To retrieve information about a Test Plan, an application submits an HTTP GET request to the URL that represents the Test Plan resource.
/testplan/:id
, for example, /testplan/54edbcd9eb90892f5eed9129
.
GET
The response header includes the following information:
Field | Description |
---|---|
Content-Type | The content type and character encoding of the response. |
Content-Length | The length of the retrieved content. |
The response body contains the following elements in JSON format:
Element | Description |
---|---|
id | An alphanumeric value that uniquely identifies the Test Plan. |
name | Name of the Test Plan. |
description | Description of the Test Plan. |
createdAt | A dateTime value that specifies the date and time the Test Plan was created. |
updatedAt | A dateTime value that specifies the date and time the Test Plan was last modified. |
rules | An integer value that specifies the number of rules associated to the Test Plan. |
Status Code | Description |
---|---|
200-299 | The request was successful. The Test Plan information is in the response body. |
400 | Bad request. Typically returned if required information was not provided as input. |
404 | Not found. The resource was not found. |
500-599 | Server error. |
{
"id": "54edbcd9eb90892f5eed9129",
"name": "Amazon S3 Test Plan",
"description": "My test plan for Amazon S3...",
"rules": 42,
"createdAt": "2014-02-12 03:34:51",
"updatedAt": "2014-02-12 03:34:51"
}
An application can create a Test Plan by issuing an HTTP POST request to the URL of the containing Test Plan resource
/testplan/
POST
The request header includes the following information:
Field | Description |
---|---|
Content-Type | The content type and character encoding of the response. |
Content-Length | The length of the retrieved content. |
JSON input that contains a Test Plan representation with the following elements:
Element | Description |
---|---|
name | Name of the Test Plan. |
description | Description of the Test Plan. |
POST https://api.heliosburn.com/testplan/ HTTP/1.1
User-Agent: Jakarta Commons-HttpClient/3.1
Host: api.heliosburn.com
Content-Length: 294
Content-Type: application/json; charset=UTF-8
{
"name": "Amazon S3 Test Plan",
"description": "My test plan for Amazon S3..."
}
The response header includes the following information:
Field | Description |
---|---|
Content-Type | The content type and character encoding of the response. |
Content-Length | The length of the content. |
Location | The location of the newly created Test Plan. |
Status Code | Description |
---|---|
200-299 | The request was successful. The Test Plan was successfully created. |
400 | Bad request. Typically returned if required information was not provided as input. |
500-599 | Server error. |
HTTP/1.1 201 Created
Content-Type: application/octet-stream; charset=UTF-8
Content-Length: 0
Date: Wed, 14 Dec 2014 19:35:02 GMT
Location: http://api.heliosburn.com/testplan/65435564536453234566
Access-Control-Allow-Origin: *
Server: Noelios-Restlet-Engine/1.1.5
An application can update a Test Plan by issuing an HTTP PUT request to the URL of the containing Test Plan resource. In addition, the app needs to provide as input, JSON that identifies the new attribute values for the Test Plan. Upon receiving the PUT request, the HeliosBurn service examines the input and updates any of the attributes that have been modified.
/testplan/:id
, for example, /testplan/54edbcd9eb90892f5eed9129
.
PUT
The request header includes the following information:
Field | Description |
---|---|
Content-Type | The content type and character encoding of the response. |
Content-Length | The length of the retrieved content. |
JSON input that contains a Test Plan representation with the elements to be modified:
Element | Description |
---|---|
name | Name of the Test Plan. |
description | Description of the Test Plan. |
PUT https://api.heliosburn.com/testplan/54edbcd9eb90892f5eed9129 HTTP/1.1
User-Agent: Jakarta Commons-HttpClient/3.1
Host: api.heliosburn.com
Content-Length: 294
Content-Type: application/json; charset=UTF-8
{
"name": "Amazon S3 Test Plan",
"description": "My test plan for Amazon S3..."
}
The response header includes the following information:
Field | Description |
---|---|
Content-Type | The content type and character encoding of the response. |
Content-Length | The length of the content. |
Status Code | Description |
---|---|
200-299 | The request was successful. The Test Plan was successfully updated. |
400 | Bad request. Typically returned if required information was not provided as input. |
404 | Not found. The resource was not found. |
500-599 | Server error. |
HTTP/1.1 200 OK
Content-Type: application/octet-stream; charset=UTF-8
Content-Length: 0
Date: Wed, 14 Dec 2014 19:35:02 GMT
Access-Control-Allow-Origin: *
Server: Noelios-Restlet-Engine/1.1.5
An application can permanently delete a Test Plan by issuing an HTTP DELETE request to the URL of the Test Plan resource. It's a good idea to precede DELETE requests like this with a caution note in your application's user interface.
/testplan/:id
, for example, /testplan/54edbcd9eb90892f5eed9129
.
DELETE
The request header includes the following information:
Field | Description |
---|---|
Content-Type | The content type and character encoding of the response. |
Content-Length | The length of the retrieved content. |
DELETE https://api.heliosburn.com/testplan/54edbcd9eb90892f5eed9129 HTTP/1.1
User-Agent: Jakarta Commons-HttpClient/3.1
Host: api.heliosburn.com
Content-Length: 0
Content-Type: application/json; charset=UTF-8
Status Code | Description |
---|---|
200-299 | The request was successful. The Test Plan was successfully deleted. |
400 | Bad request. Typically returned if required information was not provided as input. |
404 | Not found. The resource was not found. |
500-599 | Server error. |
HTTP/1.1 200 OK
Content-Type: application/octet-stream; charset=UTF-8
Content-Length: 0
Date: Wed, 14 Dec 2014 19:35:02 GMT
Access-Control-Allow-Origin: *
Server: Noelios-Restlet-Engine/1.1.5