Skip to content

Commit

Permalink
Add APIs for XY specific attributes for XY Entries
Browse files Browse the repository at this point in the history
- Added XYTreeEntry: it extends TreeDataModel and adds XY specific
  attributes. Currently, the optional flag 'isDefault' is added to
  indicate that entry should be checked and its xy data should be drawn
  by default
- Added XYTreeEntryModel: it extends TreeEntryModel and returns a list
  of XTTreeEntry instead
- Updated XYTreeResponse: it returns a XYTreeEntryModel now

Signed-off-by: Bernd Hufmann <[email protected]>
  • Loading branch information
bhufmann committed Jan 13, 2023
1 parent 0bd6abf commit 569aac4
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 4 deletions.
24 changes: 22 additions & 2 deletions API-proposed.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
###############################################################################
# Copyright (c) 2018, 2022 Ericsson
# Copyright (c) 2018, 2023 Ericsson
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -2507,14 +2507,34 @@ components:
properties:
model:
$ref: '#/components/schemas/XYModel'
XYTreeEntry:
type: object
allOf:
- $ref: '#/components/schemas/TreeDataModel'
- type: object
properties:
isDefault:
type: boolean
description: Optional flag to indicate whether or not the entry is a default
entry and its xy data should be fetched by default.
XYTreeEntryModel:
type: object
allOf:
- $ref: '#/components/schemas/TreeEntryModel'
- type: object
properties:
entries:
type: array
items:
$ref: '#/components/schemas/XYTreeEntry'
XYTreeResponse:
type: object
allOf:
- $ref: '#/components/schemas/GenericResponse'
- type: object
properties:
model:
$ref: '#/components/schemas/TreeEntryModel'
$ref: '#/components/schemas/XYTreeEntryModel'
Experiment:
type: object
properties:
Expand Down
24 changes: 22 additions & 2 deletions API.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
###############################################################################
# Copyright (c) 2018, 2022 Ericsson
# Copyright (c) 2018, 2023 Ericsson
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -1814,14 +1814,34 @@ components:
properties:
model:
$ref: '#/components/schemas/XYModel'
XYTreeEntry:
type: object
allOf:
- $ref: '#/components/schemas/TreeDataModel'
- type: object
properties:
isDefault:
type: boolean
description: Optional flag to indicate whether or not the entry is a default
entry and its xy data should be fetched by default.
XYTreeEntryModel:
type: object
allOf:
- $ref: '#/components/schemas/TreeEntryModel'
- type: object
properties:
entries:
type: array
items:
$ref: '#/components/schemas/XYTreeEntry'
XYTreeResponse:
type: object
allOf:
- $ref: '#/components/schemas/GenericResponse'
- type: object
properties:
model:
$ref: '#/components/schemas/TreeEntryModel'
$ref: '#/components/schemas/XYTreeEntryModel'
Experiment:
type: object
properties:
Expand Down

0 comments on commit 569aac4

Please sign in to comment.