What's on this page

Projects

Get all Projects

Return the details of all the existing behavior Test Projects currently known to LM.

Request Format

Aspect Value
Endpoint URL /api/behaviour/projects
HTTP Method GET

No Parameters supported or required.

Response Format

Aspect Value
Response Code 200 – OK

Example Response Body

[

  {

​    "id": "8e266bc5-e613-4b0d-9ae0-50db6454b026",

​    "name": "test",

​    "description": "description",

​    "createdAt": "2019-02-28T14:55:15.939Z",

​    "lastModifiedAt": "2019-02-28T14:55:15.939Z"

  }

]

Response properties

Property Name Description Mandatory
id Unique identifier for the behavior Test Project. This can be any text string, it is not limited to GUIDs. Yes
name Textual name of the Project No
description Description of the Project as supplied when it was created Yes
createdAt Date and time the project was created Yes
LastModifiedAt Date and time the project was last modified Yes

Get Project by ID

Returns the information about a specific behavior Test Project

Request Format

Aspect Value
Endpoint URL /api/behaviour/projects/{projectId}
HTTP Method GET

Request parameters

Parameter Description Mandatory
projectId Unique identifier of the behavior Test Project to retrieve. This can be any text string. Yes

Response Format

Aspect Value
Response Code 200 – Request Successful 404 – Project could not be found

Example Response Body

For a 200 Response Code:

{

  "id": "8e266bc5-e613-4b0d-9ae0-50db6454b026",

  "name": "test",

  "description": "description",

  "createdAt": "2019-02-28T15:05:47.516Z",

  "lastModifiedAt": "2019-02-28T15:05:47.516Z"

}

For a 40x, 500 or any other error response please see error responses

Response properties

Property Name Description Mandatory
id Unique identifier for the behavior Test Project. This can be any text string, it is not limited to GUIDs. Yes
name Textual name of the Project No
description Description of the Project as supplied when it was created Yes
createdAt Date and time the project was created Yes
lastModifiedAt Date and time the project was last modified Yes