What's on this page

Assembly Configuration

The following details the API to manage Assembly Configurations within TNC-O.

Associated with each definition are details of the request parameters and responses. These include the name of each field plus a brief description and whether the field is mandatory. Whether a field is required or not is based on the context of the examples. The underlying API definition may mark a field as optional, but in some contexts, the fields must be supplied.

For a 40x, 50x or any other error response please see error response codes

Create Assembly Configuration

Create a new Assembly Configuration

Request

AspectValue
Endpoint URL/api/behaviour/assemblyConfigurations
Content-Typeapplication/json
HTTP MethodPOST

Body

FieldDescriptionMandatory
nameName of the Assembly ConfigurationYes
descriptionSupplied description of the Assembly ConfigurationNo
projectIdUnique identifier for the behaviour test Project this Assembly Configuration belongs toYes
descriptorNameName of the Assembly Descriptor to be instantiated in this configurationYes
propertiesName-value pairs, each defining a property value to use when instantiating an Assembly from this configurationNo

Example:

{
​  "name": "test",
​  "projectId": "assembly::Test::1.0",
​  "description": "description",
​  "descriptorName": "assembly::Test::1.0",
  "properties": {
​    "additionalProp1": "string",
​    "additionalProp2": "string",
​    "additionalProp3": "string"
​  }
}

Response

AspectValue
Content-Typeapplication/json
Response Code201 (Created)

Headers

FieldDescription
locationEndpoint to created resource

Body

FieldDescription
idUnique identifier of the Assembly Configuration
nameName of the Assembly Configuration
descriptionSupplied description of the Assembly Configuration
projectIdUnique identifier for the behaviour test Project this Assembly Configuration belongs to
descriptorNameName of the Assembly Descriptor to be instantiated in this configuration
createdAtDate and time the Assembly Configuration instance was created
lastModifiedAtDate and time the Assembly Configuration instance was last modified
propertiesName-value pairs, each defining a property value to use when instantiating an Assembly from this configuration

Example:

{
​  "id": "8e266bc5-e613-4b0d-9ae0-50db6454b026",
​  "name": "test",
​  "projectId": "assembly::Test::1.0",
​  "description": "description",
​  "descriptorName": "assembly::Test::1.0",
​  "createdAt": "2019-03-01T10:07:21.289Z",
​  "lastModifiedAt": "2019-03-01T10:07:21.289Z",
  "properties": {
​    "additionalProp1": "string",
​    "additionalProp2": "string",
​    "additionalProp3": "string"
​  }
}

Update Assembly Configuration

Update an Assembly Configuration details

Request

AspectValue
Endpoint URL/api/behaviour/assemblyConfigurations/{assemblyConfigurationId}
HTTP MethodPUT

Path Parameters

FieldDescriptionMandatory
assemblyConfigurationIdID of the Assembly ConfigurationYes

Body

FieldDescription
nameName of the Assembly Configuration
descriptionSupplied description of the Assembly Configuration
projectIdUnique identifier for the behaviour test Project this Assembly Configuration belongs to
descriptorNameName of the Assembly Descriptor to be instantiated in this configuration
propertiesName-value pairs, each defining a property value to use when instantiating an Assembly from this configuration

Example:

{
​  "name": "test",
​  "projectId": "assembly::Test::1.0",
​  "description": "description",
​  "descriptorName": "assembly::Test::1.0",
  "properties": {
​    "additionalProp1": "string",
​    "additionalProp2": "string",
​    "additionalProp3": "string"
​  }
}

Response

AspectValue
Content-Typeapplication/json
Response Code200 (OK)

Body

FieldDescription
idUnique identifier of the Assembly Configuration
nameName of the Assembly Configuration
descriptionSupplied description of the Assembly Configuration
projectIdUnique identifier for the behaviour test Project this Assembly Configuration belongs to
descriptorNameName of the Assembly Descriptor to be instantiated in this configuration
createdAtDate and time the Assembly Configuration instance was created
lastModifiedAtDate and time the Assembly Configuration instance was last modified
propertiesName-value pairs, each defining a property value to use when instantiating an Assembly from this configuration

Example:

{
​  "id": "8e266bc5-e613-4b0d-9ae0-50db6454b026",
​  "name": "test",
​  "projectId": "assembly::Test::1.0",
​  "description": "description",
​  "descriptorName": "assembly::Test::1.0",
​  "createdAt": "2019-03-01T10:07:21.289Z",
​  "lastModifiedAt": "2019-03-01T10:07:21.289Z",
  "properties": {
​    "additionalProp1": "string",
​    "additionalProp2": "string",
​    "additionalProp3": "string"
​  }
}

Remove Assembly Configuration

Remove a Assembly Configuration

Request

AspectValue
Endpoint URL/api/behaviour/assemblyConfigurations/{assemblyConfigurationId}
HTTP MethodDELETE

Path Parameters

FieldDescriptionMandatory
assemblyConfigurationIdID of the Assembly ConfigurationYes

Response

AspectValue
Content-Typeapplication/json
Response Code204 (No Content)

Get all Assembly Configurations

Retrieve all Assembly Configurations in a behaviour testing Project (descriptor)

Request

AspectValue
Endpoint URL/api/behaviour/assemblyConfigurations?projectId={projectId}
HTTP MethodGET

Query Parameters

FieldDescriptionMandatory
projectIdID of the behaviour testing project (usually the descriptor name)Yes

Response

AspectValue
Content-Typeapplication/json
Response Code200 (OK)

Body

The body will contain a single list of Assembly Configurations. Each configuration will have the following fields:

FieldDescription
idUnique identifier of the Assembly Configuration
nameName of the Assembly Configuration
descriptionSupplied description of the Assembly Configuration
projectIdUnique identifier for the behaviour test Project this Assembly Configuration belongs to
descriptorNameName of the Assembly Descriptor to be instantiated in this configuration
createdAtDate and time the Assembly Configuration instance was created
lastModifiedAtDate and time the Assembly Configuration instance was last modified
propertiesName-value pairs, each defining a property value to use when instantiating an Assembly from this configuration

Example:

[
  {
​    "id": "8e266bc5-e613-4b0d-9ae0-50db6454b026",
​    "name": "test",
​    "projectId": "assembly::Test::1.0",
​    "description": "description",
​    "descriptorName": "assembly::Test::1.0",
​    "createdAt": "2019-03-01T10:07:21.289Z",
​    "lastModifiedAt": "2019-03-01T10:07:21.289Z",
    "properties": {
​      "additionalProp1": "string",
​      "additionalProp2": "string",
​      "additionalProp3": "string"
​    }
  }
]

Get Assembly Configuration

Retrieve a single Assembly Configuration by ID

Request

AspectValue
Endpoint URL/api/behaviour/assemblyConfigurations/{assemblyConfigurationId}
HTTP MethodGET

Path Parameters

FieldDescriptionMandatory
assemblyConfigurationIdID of the Assembly ConfigurationYes

Response

AspectValue
Content-Typeapplication/json
Response Code200 (OK)

Body

FieldDescription
idUnique identifier of the Assembly Configuration
nameName of the Assembly Configuration
descriptionSupplied description of the Assembly Configuration
projectIdUnique identifier for the behaviour test Project this Assembly Configuration belongs to
descriptorNameName of the Assembly Descriptor to be instantiated in this configuration
createdAtDate and time the Assembly Configuration instance was created
lastModifiedAtDate and time the Assembly Configuration instance was last modified
propertiesName-value pairs, each defining a property value to use when instantiating an Assembly from this configuration

Example:

{
​  "id": "8e266bc5-e613-4b0d-9ae0-50db6454b026",
​  "name": "test",
​  "projectId": "assembly::Test::1.0",
​  "description": "description",
​  "descriptorName": "assembly::Test::1.0",
​  "createdAt": "2019-03-01T10:07:21.289Z",
​  "lastModifiedAt": "2019-03-01T10:07:21.289Z",
  "properties": {
​    "additionalProp1": "string",
​    "additionalProp2": "string",
​    "additionalProp3": "string"
​  }
}