For Guilin inventory tree view extension (ODLUX Inventory enhancement with treeview) the data-provider (Data-Provider) is getting a new extension.

Goal:

Characteristics:

Extension of data-provider Web-API in Guilin:

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

{
    "query":"2143524123"
}

Example 2: Converted to an database (Elasticsearch) query (search through all properties)

POST /alias/doctype/_search
{
  "query": {
    "query_string": {
      "default_field": "*",
      "query": "*searchfor*"
    }
  }
}

Example 3: Response

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


propertydescription
{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

childrenSeveritySummaryActual severity level of child equipment