Download OpenAPI specification:Download
This is the Building Codes and Rules API proposed as part of the ACCORD project version: '1.0.0'. It is important to note when reading this API that any given version of a building code is immutable and once a specific version is published it cannot be changed. To update a document a new version must be created.
Retrieves the basic metadata about the server and a list of Building Codes hosted by it
{- "name": "string",
- "description": "string",
- "operator": "string",
- "documentList": [
- {
- "classification": "string",
- "fullName": "string",
- "latestVersion": "string",
- "latestVersionDate": "2019-08-24",
- "versions": [
- {
- "version": "string",
- "versionDate": "2019-08-24"
}
], - "language": "string",
- "jurisdiction": "string"
}
]
}
Returns the latest version of a Building Code
jurisdiction required | string The jurisdiction of the building code |
classification required | string The classification of the building code |
purpose | string Default: "combined" Enum: "execution" "visualisation" "combined" Defines the purpose of the returned data, so the content of the response can be tuned accordingly |
ruleFormat | string Default: "summary" Enum: "explicit" "summary" Defines the formating of the executable rules within the returned document. |
language | string Default: "en-gb" Specifies the requested language specified using a standard IETF language tag. |
{- "@base": "string",
- "@context": [
- { }
], - "$type": [
- "Document"
], - "identifier": "string",
- "$id": "string",
- "title": "string",
- "hasPart": [
- {
- "$type": [
- "DocumentSubdivision"
], - "identifier": "string",
- "$id": "string",
- "hasPart": [
- { }
], - "hasInlinePart": [
- {
- "$type": [
- "CheckStatement"
], - "identifier": "string",
- "$id": "string",
- "hasInlinePart": [
- { }
], - "references": "string",
- "asText": "string",
- "isOperationalizedBy": {
- "$type": [
- "DeclarativeCheckMethod"
], - "identifier": "string",
- "$id": "string",
- "asText": "string",
- "executes": {
- "$id": "string",
- "$type": [
- "$id"
]
}, - "hasNestedTarget": { },
- "hasBSDDTarget": {
- "$id": "string",
- "$type": [
- "$id"
]
}, - "hasTarget": "string",
- "hasBSDDValue": {
- "$id": "string",
- "$type": [
- "$id"
]
}, - "hasNestedValue": [
- { }
], - "hasValue": "string",
- "hasUnit": {
- "$id": "string",
- "$type": [
- "$id"
]
}, - "hasOperator": "CheckMethodOperator-addition",
- "hasComparator": "CheckMethodComparator-eq"
}
}
], - "title": "string",
- "relation": "string",
- "references": "string",
- "asText": "string"
}
], - "modified": "string",
- "issued": "string",
- "coverage": "string",
- "temporal": "string",
- "subject": "string"
}
jurisdiction required | string The jurisdiction of the building code |
classification required | string The classification of the building code |
language | string Default: "en-gb" Specifies the requested language specified using a standard IETF language tag. |
A GraphQL Query
query | string |
{- "query": "string"
}
{- "data": { }
}
Returns a specified version of a building code
jurisdiction required | string The jurisdiction of the building code |
classification required | string The classification of the building code |
version required | string The version name of the document to retrieve, or the latest version if absent |
purpose | string Default: "combined" Enum: "execution" "visualisation" "combined" Defines the purpose of the returned data, so the content of the response can be tuned accordingly |
ruleFormat | string Default: "summary" Enum: "explicit" "summary" Defines the formating of the executable rules within the returned document. |
language | string Default: "en-gb" Specifies the requested language specified using a standard IETF language tag. |
{- "@base": "string",
- "@context": [
- { }
], - "$type": [
- "Document"
], - "identifier": "string",
- "$id": "string",
- "title": "string",
- "hasPart": [
- {
- "$type": [
- "DocumentSubdivision"
], - "identifier": "string",
- "$id": "string",
- "hasPart": [
- { }
], - "hasInlinePart": [
- {
- "$type": [
- "CheckStatement"
], - "identifier": "string",
- "$id": "string",
- "hasInlinePart": [
- { }
], - "references": "string",
- "asText": "string",
- "isOperationalizedBy": {
- "$type": [
- "DeclarativeCheckMethod"
], - "identifier": "string",
- "$id": "string",
- "asText": "string",
- "executes": {
- "$id": "string",
- "$type": [
- "$id"
]
}, - "hasNestedTarget": { },
- "hasBSDDTarget": {
- "$id": "string",
- "$type": [
- "$id"
]
}, - "hasTarget": "string",
- "hasBSDDValue": {
- "$id": "string",
- "$type": [
- "$id"
]
}, - "hasNestedValue": [
- { }
], - "hasValue": "string",
- "hasUnit": {
- "$id": "string",
- "$type": [
- "$id"
]
}, - "hasOperator": "CheckMethodOperator-addition",
- "hasComparator": "CheckMethodComparator-eq"
}
}
], - "title": "string",
- "relation": "string",
- "references": "string",
- "asText": "string"
}
], - "modified": "string",
- "issued": "string",
- "coverage": "string",
- "temporal": "string",
- "subject": "string"
}
Uploads a new building code with the specified short name and version name. This is a PUT operation due to the fact that any given version of a building code is immutable and once a specific version is published it cannot be changed. To update a building code a new version must be created.
jurisdiction required | string The jurisdiction of the building code |
classification required | string The classification of the building code |
version required | string The version name of the document being created |
A building code. YAML or JSON expected according to the content-type specified.
@base required | string |
@context required | Array of objects |
$type required | Array of strings Items Value: "Document" |
identifier required | string |
$id required | string |
title required | string |
required | Array of objects (BuildingCodePart) |
modified | string |
issued | string |
coverage | string |
temporal | string |
subject | string |
{- "@base": "string",
- "@context": [
- { }
], - "$type": [
- "Document"
], - "identifier": "string",
- "$id": "string",
- "title": "string",
- "hasPart": [
- {
- "$type": [
- "DocumentSubdivision"
], - "identifier": "string",
- "$id": "string",
- "hasPart": [
- { }
], - "hasInlinePart": [
- {
- "$type": [
- "CheckStatement"
], - "identifier": "string",
- "$id": "string",
- "hasInlinePart": [
- { }
], - "references": "string",
- "asText": "string",
- "isOperationalizedBy": {
- "$type": [
- "DeclarativeCheckMethod"
], - "identifier": "string",
- "$id": "string",
- "asText": "string",
- "executes": {
- "$id": "string",
- "$type": [
- "$id"
]
}, - "hasNestedTarget": { },
- "hasBSDDTarget": {
- "$id": "string",
- "$type": [
- "$id"
]
}, - "hasTarget": "string",
- "hasBSDDValue": {
- "$id": "string",
- "$type": [
- "$id"
]
}, - "hasNestedValue": [
- { }
], - "hasValue": "string",
- "hasUnit": {
- "$id": "string",
- "$type": [
- "$id"
]
}, - "hasOperator": "CheckMethodOperator-addition",
- "hasComparator": "CheckMethodComparator-eq"
}
}
], - "title": "string",
- "relation": "string",
- "references": "string",
- "asText": "string"
}
], - "modified": "string",
- "issued": "string",
- "coverage": "string",
- "temporal": "string",
- "subject": "string"
}
{- "success": true
}
jurisdiction required | string The jurisdiction of the building code |
classification required | string The classification of the building code |
version required | string The version name of the document to retrieve, or the latest version if absent |
A GraphQL Query
query | string |
{- "query": "string"
}
{- "data": { }
}
Returns the IDS for the given version of a Building Code
jurisdiction required | string The jurisdiction of the building code |
classification required | string The classification of the building code |
version required | string The version name of the document to retrieve, or the latest version if absent |
Returns a specific section/paragraph of a building code
classification required | string The classification of the building code |
jurisdiction required | string The jurisdiction of the building code |
version required | string The version of the document |
documentReference required | string The reference to the specific section/paragraph to retrieve. Should be a list of section or paragraph numbered seperated by the / character. An example for this is /1/2/a for Section 1, Paragraph 2 sub paragraph a |
purpose | string Default: "combined" Enum: "execution" "visualisation" "combined" Defines the purpose of the returned data, so the content of the response can be tuned accordingly |
ruleFormat | string Default: "summary" Enum: "explicit" "summary" Defines the formating of the executable rules within the returned document. |
{- "@base": "string",
- "@context": [
- { }
], - "$type": [
- "Document"
], - "identifier": "string",
- "$id": "string",
- "title": "string",
- "hasPart": [
- {
- "$type": [
- "DocumentSubdivision"
], - "identifier": "string",
- "$id": "string",
- "hasPart": [
- { }
], - "hasInlinePart": [
- {
- "$type": [
- "CheckStatement"
], - "identifier": "string",
- "$id": "string",
- "hasInlinePart": [
- { }
], - "references": "string",
- "asText": "string",
- "isOperationalizedBy": {
- "$type": [
- "DeclarativeCheckMethod"
], - "identifier": "string",
- "$id": "string",
- "asText": "string",
- "executes": {
- "$id": "string",
- "$type": [
- "$id"
]
}, - "hasNestedTarget": { },
- "hasBSDDTarget": {
- "$id": "string",
- "$type": [
- "$id"
]
}, - "hasTarget": "string",
- "hasBSDDValue": {
- "$id": "string",
- "$type": [
- "$id"
]
}, - "hasNestedValue": [
- { }
], - "hasValue": "string",
- "hasUnit": {
- "$id": "string",
- "$type": [
- "$id"
]
}, - "hasOperator": "CheckMethodOperator-addition",
- "hasComparator": "CheckMethodComparator-eq"
}
}
], - "title": "string",
- "relation": "string",
- "references": "string",
- "asText": "string"
}
], - "modified": "string",
- "issued": "string",
- "coverage": "string",
- "temporal": "string",
- "subject": "string"
}