ACCORD Results API (1)

Download OpenAPI specification:

This is the Results API proposed as part of the ACCORD project version: '1.0.0'. It is designed to be implemented by compliance checking microservices to allow interface between the ACCORD cloud architecture and the compliance checking microservices.

Retrieves the basic metadata about the compliance checking microservice

Retrieves the basic metadata about the compliance checking microservice and its capabilities.

Responses

Response samples

Content type
application/json
{
  • "name": "string",
  • "description": "string",
  • "operator": "string",
  • "supportedModelFormats": [
    ],
  • "supportedTerms": [
    ]
}

Initiates a Compliance Check on the Microservice based on a document reference

Initiates a Compliance Check on the Microservice based on a document reference

Authorizations:
auth
Request Body schema: application/json
required

The parameters to initiate the compliance check. The microservice should parse and execute all checks within the given BuildingCode that it is capable of executing.

buildingCodeReferences
required
Array of strings <url> [ items <url > ]

The URLs to one or more building codes hosted on an endpoint compatible with the Building Codes and Regulations API

required
Array of objects (ModelDetails)

The list of models for this check

additionalData
object

Any additional data (specified as valid JSON) required by the microservice for execution

entityIds
Array of strings

The set of entity Ids to restrict those that the given compliance check is performed on. If blank it is assumed all entities are checked.

webhookUrl
string <url>

A Webhook URL that the microservice can call to signify this check is complete.

webhookUpload
string <url>

A Webhook URL that the microservice can call to upload any supportingFileData.

Responses

Request samples

Content type
application/json
{
  • "buildingCodeReferences": [
    ],
  • "models": [
    ],
  • "additionalData": { },
  • "entityIds": [
    ],
  • "webhookUrl": "string",
  • "webhookUpload": "string"
}

Response samples

Content type
application/json
{
  • "CheckJobID": "5f07e7d2-8b11-4e96-8db4-054791375c11"
}

Initiates a specific Compliance Check on the Microservice within a given document reference

Initiates a Compliance Check on the Microservice within a given document reference

Authorizations:
auth
path Parameters
ComplianceCheckName
required
string

The name of the compliance check to be executed

Request Body schema: application/json
required

The parameters to initiate the compliance check. The microservice should execute only the named compliance check within the given BuildingCode.

entityIds
Array of strings

The set of entity Ids to perform the given compliance check on. If blank it is assumed all entities are checked.

comparator
string
Enum: "!=" "==" ">=" "<=" "<" ">"

The comparator used to determine if a specific individual check has passed

desiredValue
string

The desired value for the result of the compliance check.

unit
string

The unit of desiredValue. If absent the microservice will assume either unitless or a standard SI Unit.

buildingCodeReference
required
string

The URL to a building code hosted on an endpoint compatible with the Building Codes and Regulations API

additionalData
object

Any additional data (specified as valid JSON) required by the microservice for execution

required
Array of objects (ModelDetails)

The list of models for this check

webhookUrl
string <url>

A Webhook URL that the microservice can call to signify this check is complete.

Responses

Request samples

Content type
application/json
{
  • "entityIds": [
    ],
  • "comparator": "!=",
  • "desiredValue": "string",
  • "unit": "string",
  • "buildingCodeReference": "string",
  • "additionalData": { },
  • "models": [
    ],
  • "webhookUrl": "string"
}

Response samples

Content type
application/json
{
  • "CheckJobID": "5f07e7d2-8b11-4e96-8db4-054791375c11"
}

Returns the status of a Check Job Id

Authorizations:
auth
path Parameters
CheckJobID
required
string <uuid>

The Check Job Id

Responses

Response samples

Content type
application/json
{
  • "complete": true
}

Returns the results of a CheckJobID

Authorizations:
auth
path Parameters
CheckJobID
required
string <uuid>

The CheckJobID

header Parameters
Accept-Language
string

The requested language of the response (taken from ISO 639) defaults to EN.

Responses

Response samples

Content type
application/json
{
  • "supportingFileContentType": "string",
  • "supportingFileData": "string",
  • "results": [
    ]
}

Returns the bcf results of a CheckJobID

Authorizations:
auth
path Parameters
CheckJobID
required
string <uuid>

The CheckJobID

header Parameters
Accept-Language
string

The requested language of the response (taken from ISO 639) defaults to EN.

Responses