Versions Compared

Key

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

...

Code Block
GET http://localhost:8080/pentaho/content/ws-run/metadataService/listBusinessModels

<?xml version="1.0"?>
<ns:listBusinessModelsResponse
   xmlns:ns="http://service.metadata.ui.common.pentaho.org" 
  xmlns:ax2950="http://util.java/xsd" 
  xmlns:ax2944="http://impl.model.metadata.ui.common.pentaho.org/xsd" 
  xmlns:ax2942="http://logging.commons.apache.org/xsd" 
  xmlns:ax2946="http://marshal.connection.commons.pentaho.org/xsd" 
  xmlns:ax2947="http://connection.commons.pentaho.org/xsd" 
  xmlns:ax2939="http://io.java/xsd"
>
  <return type="org.pentaho.common.ui.metadata.model.impl.ModelInfo">
    <domainId>steel-wheels/metadata.xmi</domainId>
    <modelDescription>This model contains information about Employees.</modelDescription>
    <modelId>BV_HUMAN_RESOURCES</modelId>
    <modelName>Human Resources</modelName>
  </return>
  <return type="org.pentaho.common.ui.metadata.model.impl.ModelInfo">
    <domainId>steel-wheels/metadata.xmi</domainId>
    <modelDescription>This model contains information about products and product inventory.</modelDescription>
    <modelId>BV_INVENTORY</modelId>
    <modelName>Inventory</modelName>
  </return>
  <return type="org.pentaho.common.ui.metadata.model.impl.ModelInfo">
    <domainId>steel-wheels/metadata.xmi</domainId>
    <modelDescription>This model contains information about customers and their orders.</modelDescription>
    <modelId>BV_ORDERS</modelId>
    <modelName>Orders</modelName>
  </return>
</ns:listBusinessModelsResponse>

listBusinessModelsJson

Code Block

GET http://localhost:8080/pentaho/content/ws-run/metadataService/listBusinessModelsJson

<ns:listBusinessModelsJsonResponse xmlns:ns="http://service.metadata.ui.common.pentaho.org">
  <return>
  [
    {
      "class":"org.pentaho.common.ui.metadata.model.impl.ModelInfo",
      "domainId":"steel-wheels/metadata.xmi",
      "modelDescription":"This model contains information about Employees.",
      "modelId":"BV_HUMAN_RESOURCES",
      "modelName":"Human Resources"
    },
    {
      "class":"org.pentaho.common.ui.metadata.model.impl.ModelInfo",
      "domainId":"steel-wheels/metadata.xmi",
      "modelDescription":"This model contains information about products and product inventory.",
      "modelId":"BV_INVENTORY",
      "modelName":"Inventory"
    },
    {
      "class":"org.pentaho.common.ui.metadata.model.impl.ModelInfo",
      "domainId":"steel-wheels/metadata.xmi",
      "modelDescription":"This model contains information about customers and their orders.",
      "modelId":"BV_ORDERS",
      "modelName":"Orders"
     }
  ]
  </return>
</ns:listBusinessModelsJsonResponse>

loadModel

loadModelJson

doQuery

...