Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Characteristics:

  • Additional API with URL for POST "/tree/read-inventory-tree"
  • The request provides back a list of equipment id's according to the request filter
  • Two filter levels:
    1. URL path : Points to a subtree of elements that are search by filter in query-body
    2. query-body with textual or field specific search.
  • Delivers back all inventory id's for the given URL/path query-body filter
  • Use data-provider api "inventoryequipment" to get inventory data for an id

Extension of data-provider Web-API in Guilin:

POST tree level entry
requestScope to apply query-body tokey-level-0
GET|POST /tree/read-inventory-tree/All equipment entries in the database for every node-idnode-id
GET|POST /tree/read-inventory-tree/{nodeId}All Equipment under node with "nodeId"uuid (tree-level=0)
GET|POST /tree/read-inventory-tree/{nodeId}/{uuid-level-0}
/...
All Equipment under node "nodeId" and next level equipment with "uuid-level-0"uuid (tree-level=1)

Example 1: Query-body with text if POST-request

Code Block
{
    "query":"2143524123"
}

...

Code Block
languagejs
linenumberstrue
{
     "{key-level-0}":{
         "label":"1.0 Shelf",
         "children?":{
             "{key-level-1}": {
                 ...
             }
         },
         "isMatch":true,
         "ownSeverity?":"major",
         "childrenSeveritySummary?":"minor"
     }
}


property

...

description
{key-level-

...

n}

...

databaseId to be used for data-provider api "inventoryequipment" to get all information

...

isMatchtrue if query matches any property of the db entry

label

Node-Id if it's a node, uuid if it's an equipment


for future use:


...

propertydescription
ownSeverity

Actual severity of this piece of matching equipment

...

childrenSeveritySummary

...

Actual severity level of child equipment