Skip to content

Commit

Permalink
add an identifier to structure the asset hierarchy in bulk
Browse files Browse the repository at this point in the history
  • Loading branch information
andreas-goebel committed Oct 30, 2024
1 parent a0ea229 commit 618704b
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 2 deletions.
2 changes: 1 addition & 1 deletion eliona-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ openapi: 3.0.3
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

info:
version: 2.7.2
version: 2.7.3
title: Eliona REST API
description:
The Eliona REST API enables unified access to the resources and data of an Eliona environment.
Expand Down
36 changes: 35 additions & 1 deletion openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ info:
license:
name: MIT License
title: Eliona REST API
version: 2.7.2
version: 2.7.3
externalDocs:
description: Find out more about Eliona App SDK
url: https://github.com/eliona-smart-building-assistant
Expand Down Expand Up @@ -4214,6 +4214,7 @@ components:
deviceIds:
- XYZ0123
- 13:23:12:34:32
parentLocationalIdentifier: "4712"
attachments:
- name: example.gif
encoding: base64
Expand All @@ -4225,6 +4226,7 @@ components:
content: iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNk+A8AAQUBAScY42YAAAAASUVORK5CYII=
latitude: 47.3667
description: "Weather station Zurich, Swiss"
parentFunctionalIdentifier: "4712"
childrenInfo:
- null
- null
Expand Down Expand Up @@ -4340,6 +4342,18 @@ components:
nullable: true
readOnly: true
type: array
parentFunctionalIdentifier:
description: The identifier specified by the identifiedBy parameter classifies
this asset as a functional child.
example: "4712"
nullable: true
type: string
parentLocationalIdentifier:
description: The identifier specified by the identifiedBy parameter classifies
this asset as a locational child
example: "4712"
nullable: true
type: string
tags:
description: List of associated tags
example:
Expand Down Expand Up @@ -4401,6 +4415,7 @@ components:
deviceIds:
- XYZ0123
- 13:23:12:34:32
parentLocationalIdentifier: "4712"
attachments:
- name: example.gif
encoding: base64
Expand All @@ -4412,6 +4427,7 @@ components:
content: iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNk+A8AAQUBAScY42YAAAAASUVORK5CYII=
latitude: 47.3667
description: "Weather station Zurich, Swiss"
parentFunctionalIdentifier: "4712"
childrenInfo:
- null
- null
Expand Down Expand Up @@ -4440,6 +4456,7 @@ components:
deviceIds:
- XYZ0123
- 13:23:12:34:32
parentLocationalIdentifier: "4712"
attachments:
- name: example.gif
encoding: base64
Expand All @@ -4451,6 +4468,7 @@ components:
content: iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNk+A8AAQUBAScY42YAAAAASUVORK5CYII=
latitude: 47.3667
description: "Weather station Zurich, Swiss"
parentFunctionalIdentifier: "4712"
childrenInfo:
- null
- null
Expand Down Expand Up @@ -4489,6 +4507,7 @@ components:
deviceIds:
- XYZ0123
- 13:23:12:34:32
parentLocationalIdentifier: "4712"
attachments:
- name: example.gif
encoding: base64
Expand All @@ -4500,6 +4519,7 @@ components:
content: iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNk+A8AAQUBAScY42YAAAAASUVORK5CYII=
latitude: 47.3667
description: "Weather station Zurich, Swiss"
parentFunctionalIdentifier: "4712"
childrenInfo:
- globalAssetIdentifier: zurich_swiss
functionalAssetIdPath:
Expand All @@ -4509,6 +4529,7 @@ components:
deviceIds:
- XYZ0123
- 13:23:12:34:32
parentLocationalIdentifier: "4712"
attachments:
- name: example.gif
encoding: base64
Expand All @@ -4520,6 +4541,7 @@ components:
content: iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNk+A8AAQUBAScY42YAAAAASUVORK5CYII=
latitude: 47.3667
description: "Weather station Zurich, Swiss"
parentFunctionalIdentifier: "4712"
childrenInfo:
- null
- null
Expand All @@ -4546,6 +4568,7 @@ components:
deviceIds:
- XYZ0123
- 13:23:12:34:32
parentLocationalIdentifier: "4712"
attachments:
- name: example.gif
encoding: base64
Expand All @@ -4557,6 +4580,7 @@ components:
content: iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNk+A8AAQUBAScY42YAAAAASUVORK5CYII=
latitude: 47.3667
description: "Weather station Zurich, Swiss"
parentFunctionalIdentifier: "4712"
childrenInfo:
- null
- null
Expand Down Expand Up @@ -5205,6 +5229,7 @@ components:
deviceIds:
- XYZ0123
- 13:23:12:34:32
parentLocationalIdentifier: "4712"
attachments:
- name: example.gif
encoding: base64
Expand All @@ -5216,6 +5241,7 @@ components:
content: iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNk+A8AAQUBAScY42YAAAAASUVORK5CYII=
latitude: 47.3667
description: "Weather station Zurich, Swiss"
parentFunctionalIdentifier: "4712"
childrenInfo:
- null
- null
Expand Down Expand Up @@ -5435,6 +5461,7 @@ components:
deviceIds:
- XYZ0123
- 13:23:12:34:32
parentLocationalIdentifier: "4712"
attachments:
- name: example.gif
encoding: base64
Expand All @@ -5446,6 +5473,7 @@ components:
content: iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNk+A8AAQUBAScY42YAAAAASUVORK5CYII=
latitude: 47.3667
description: "Weather station Zurich, Swiss"
parentFunctionalIdentifier: "4712"
childrenInfo:
- null
- null
Expand Down Expand Up @@ -5477,6 +5505,7 @@ components:
deviceIds:
- XYZ0123
- 13:23:12:34:32
parentLocationalIdentifier: "4712"
attachments:
- name: example.gif
encoding: base64
Expand All @@ -5488,6 +5517,7 @@ components:
content: iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNk+A8AAQUBAScY42YAAAAASUVORK5CYII=
latitude: 47.3667
description: "Weather station Zurich, Swiss"
parentFunctionalIdentifier: "4712"
childrenInfo:
- null
- null
Expand Down Expand Up @@ -5645,6 +5675,7 @@ components:
deviceIds:
- XYZ0123
- 13:23:12:34:32
parentLocationalIdentifier: "4712"
attachments:
- name: example.gif
encoding: base64
Expand All @@ -5656,6 +5687,7 @@ components:
content: iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNk+A8AAQUBAScY42YAAAAASUVORK5CYII=
latitude: 47.3667
description: "Weather station Zurich, Swiss"
parentFunctionalIdentifier: "4712"
childrenInfo:
- null
- null
Expand Down Expand Up @@ -5687,6 +5719,7 @@ components:
deviceIds:
- XYZ0123
- 13:23:12:34:32
parentLocationalIdentifier: "4712"
attachments:
- name: example.gif
encoding: base64
Expand All @@ -5698,6 +5731,7 @@ components:
content: iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNk+A8AAQUBAScY42YAAAAASUVORK5CYII=
latitude: 47.3667
description: "Weather station Zurich, Swiss"
parentFunctionalIdentifier: "4712"
childrenInfo:
- null
- null
Expand Down
10 changes: 10 additions & 0 deletions schemas/Asset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,16 @@ properties:
nullable: true
items:
type: integer
parentFunctionalIdentifier:
type: string
description: The identifier specified by the identifiedBy parameter classifies this asset as a functional child.
example: 4712
nullable: true
parentLocationalIdentifier:
type: string
description: The identifier specified by the identifiedBy parameter classifies this asset as a locational child
example: 4712
nullable: true
tags:
type: array
description: List of associated tags
Expand Down

0 comments on commit 618704b

Please sign in to comment.