Skip to content

Commit

Permalink
Merge pull request #104 from buildingSMART/doc_update
Browse files Browse the repository at this point in the history
Update API description for new release
  • Loading branch information
atomczak authored Sep 25, 2024
2 parents a2560a9 + d54c3aa commit 9969e13
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 23 deletions.
9 changes: 9 additions & 0 deletions Documentation/API version history.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,15 @@ A new version will only be created if it 'breaks' the current version. For examp

If there is a new version of an API the previous version will be supported for at least 6 months after releasing the new version.

## 2024-09-23

Changed API methods:
* api/Dictionary/v1/Classes:
- Option "RelatedIfcEntity" added
* api/TextSearch/v2:
- Field "code" added to output of the Dictionaries list


## 2024-08-16

New API methods:
Expand Down
2 changes: 1 addition & 1 deletion Documentation/bSDD JSON import model.md
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ It is possible to reference other resources from the same dictionary using doubl

**2023-07 - Important notification:**

> As we're continuously improving bSDD, we've updated all identifiers: the dash between dictionary code and dictionary version has been replaced by a dash, e.g.:
> As we're continuously improving bSDD, we've updated all identifiers: the dash between dictionary code and dictionary version has been replaced by a slash, e.g.:
> https://identifier.buildingsmart.org/uri/bs-agri/fruitvegs-1.0.0/class/apple will now be https://identifier.buildingsmart.org/uri/bs-agri/fruitvegs/1.0.0/class/apple
>
> We will support supplying and retrieving data using the dash between dictionary code and version for (at least) 4 months. But please do note that only identifiers in the new format are returned by the bSDD APIs.
Expand Down
76 changes: 54 additions & 22 deletions Documentation/bSDD OpenAPI.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ paths:
get:
tags:
- Dictionary
summary: "Get Dictionary with tree of classes.\r\nThis one replaces /api/Domain. See https://github.com/buildingSMART/bSDD/blob/master/Documentation/API%20version%20history.md for changes."
summary: Get Dictionary with (tree of) classes
parameters:
- name: Uri
in: query
Expand All @@ -377,7 +377,12 @@ paths:
type: string
- name: SearchText
in: query
description: "Optional filter text.\r\nNot supported when UseNestedClasses = true"
description: "Optional filter text.\r\nIgnored when UseNestedClasses = true"
schema:
type: string
- name: RelatedIfcEntity
in: query
description: "Optional filter on related IFC entity. It accepts an IFC entity code (e.g. IfcWall) or uri (e.g. https://identifier.buildingsmart.org/uri/buildingsmart/ifc/4.3/class/IfcWall).\r\nWhen a code is supplied, finding matching classes ignores the IFC version.\r\nIgnored when UseNestedClasses = true"
schema:
type: string
- name: Offset
Expand Down Expand Up @@ -409,31 +414,40 @@ paths:
content:
text/plain:
schema:
$ref: '#/components/schemas/DictionaryClassesResponseContract.v1'
$ref: >-
#/components/schemas/DictionaryClassesResponseContract.v1.Classes
application/json:
schema:
$ref: '#/components/schemas/DictionaryClassesResponseContract.v1'
$ref: >-
#/components/schemas/DictionaryClassesResponseContract.v1.Classes
text/json:
schema:
$ref: '#/components/schemas/DictionaryClassesResponseContract.v1'
$ref: >-
#/components/schemas/DictionaryClassesResponseContract.v1.Classes
application/xml:
schema:
$ref: '#/components/schemas/DictionaryClassesResponseContract.v1'
$ref: >-
#/components/schemas/DictionaryClassesResponseContract.v1.Classes
text/xml:
schema:
$ref: '#/components/schemas/DictionaryClassesResponseContract.v1'
$ref: >-
#/components/schemas/DictionaryClassesResponseContract.v1.Classes
text/html:
schema:
$ref: '#/components/schemas/DictionaryClassesResponseContract.v1'
$ref: >-
#/components/schemas/DictionaryClassesResponseContract.v1.Classes
text/turtle:
schema:
$ref: '#/components/schemas/DictionaryClassesResponseContract.v1'
$ref: >-
#/components/schemas/DictionaryClassesResponseContract.v1.Classes
application/x-turtle:
schema:
$ref: '#/components/schemas/DictionaryClassesResponseContract.v1'
$ref: >-
#/components/schemas/DictionaryClassesResponseContract.v1.Classes
application/rdf+xml:
schema:
$ref: '#/components/schemas/DictionaryClassesResponseContract.v1'
$ref: >-
#/components/schemas/DictionaryClassesResponseContract.v1.Classes
/api/Dictionary/v1/Properties:
get:
tags:
Expand Down Expand Up @@ -3051,7 +3065,7 @@ components:
description: List of parents of this class till root
nullable: true
additionalProperties: false
ClassListItemContract.v1:
ClassListItemContract.v1.Classes:
type: object
properties:
uri:
Expand Down Expand Up @@ -3079,7 +3093,7 @@ components:
children:
type: array
items:
$ref: '#/components/schemas/ClassListItemContract.v1'
$ref: '#/components/schemas/ClassListItemContract.v1.Classes'
nullable: true
additionalProperties: false
ClassPropertiesContract.v1:
Expand Down Expand Up @@ -4672,7 +4686,7 @@ components:
type: string
nullable: true
additionalProperties: false
DictionaryClassesResponseContract.v1:
DictionaryClassesResponseContract.v1.Classes:
required:
- code
- defaultLanguageCode
Expand Down Expand Up @@ -4719,7 +4733,9 @@ components:
nullable: true
licenseUrl:
type: string
description: URL where you can find more details about the license
description: >-
URL where you can find more details about the license or default
link to info about licensing
nullable: true
qualityAssuranceProcedure:
type: string
Expand Down Expand Up @@ -4755,7 +4771,7 @@ components:
classes:
type: array
items:
$ref: '#/components/schemas/ClassListItemContract.v1'
$ref: '#/components/schemas/ClassListItemContract.v1.Classes'
nullable: true
classesTotalCount:
type: integer
Expand Down Expand Up @@ -4819,7 +4835,9 @@ components:
nullable: true
licenseUrl:
type: string
description: URL where you can find more details about the license
description: >-
URL where you can find more details about the license or default
link to info about licensing
nullable: true
qualityAssuranceProcedure:
type: string
Expand Down Expand Up @@ -4906,7 +4924,9 @@ components:
nullable: true
licenseUrl:
type: string
description: URL where you can find more details about the license
description: >-
URL where you can find more details about the license or default
link to info about licensing
nullable: true
qualityAssuranceProcedure:
type: string
Expand Down Expand Up @@ -5021,7 +5041,9 @@ components:
nullable: true
licenseUrl:
type: string
description: URL where you can find more details about the license
description: >-
URL where you can find more details about the license or default
link to info about licensing
nullable: true
qualityAssuranceProcedure:
type: string
Expand Down Expand Up @@ -5091,7 +5113,9 @@ components:
nullable: true
licenseUrl:
type: string
description: URL where you can find more details about the license
description: >-
URL where you can find more details about the license or default
link to info about licensing
nullable: true
qualityAssuranceProcedure:
type: string
Expand Down Expand Up @@ -5187,7 +5211,9 @@ components:
nullable: true
licenseUrl:
type: string
description: URL where you can find more details about the license
description: >-
URL where you can find more details about the license or default
link to info about licensing
nullable: true
qualityAssuranceProcedure:
type: string
Expand Down Expand Up @@ -5262,7 +5288,9 @@ components:
nullable: true
licenseUrl:
type: string
description: URL where you can find more details about the license
description: >-
URL where you can find more details about the license or default
link to info about licensing
nullable: true
qualityAssuranceProcedure:
type: string
Expand Down Expand Up @@ -7568,6 +7596,7 @@ components:
additionalProperties: false
TextSearchResponseDictionaryContract.v2:
required:
- code
- isLatestVersion
- isVerified
- languages
Expand All @@ -7584,6 +7613,9 @@ components:
organizationName:
minLength: 1
type: string
code:
minLength: 1
type: string
name:
minLength: 1
type: string
Expand Down

0 comments on commit 9969e13

Please sign in to comment.