PANTHEON™ Help

 Категории
 PANTHEON Help - Welcome
[Collapse]PANTHEON
 [Collapse]PANTHEON упатства
  [Collapse]Guide for PANTHEON
   [Expand]Settings
   [Expand]Orders
   [Expand]Goods
   [Expand]Manufacturing
   [Expand]POS
   [Expand]Service
   [Expand]Financials
   [Expand]Personnel
   [Expand]Analytics
   [Expand]Desktop
   [Expand]Помощ
   [Expand]Messages and Warnings
   [Expand]Старите продукти
   [Collapse]Additional programs
     Добавяне на потребители - Добавяне на потребители в базата данни
    [Collapse]PANTHEON Web Services (PAWS)
      Exchange Data Sets Scheme
      Installation of Web services Framework
     [Collapse]Catalog of Web Services
      [Collapse]Catalog of APIs
        DBObjects
        Ident
        Subject
        Users
        Schemas
        Параметри на базата данни
    [Expand]Datalab CHRONOS
    [Expand]Datalab OTOS
    [Expand]Datalab ATENA
    [Expand]Datalab Migrator
     Post-Migration Wizard
    [Expand]mobilni Potni Nalogi
    [Expand]Pantheon LX/LT
     Pantheon SHAKE
    [Expand]PANTHEON Automation Server (PAAS)
  [Expand]Ръководство за PANTHEON Търговия
  [Expand]Ръководство за PANTHEON Vet
  [Expand]Ръководство за PANTHEON Фермерство
 [Collapse]PANTHEON потребителски ръководства
  [Expand]Ръководство за потребителя за PANTHEON
  [Expand]Ръководство за потребителя за PANTHEON Retail
  [Expand]Ръководство за потребителя за PANTHEON Vet
  [Expand]Ръководство за потребителя за PANTHEON Farming
[Collapse]PANTHEON Web
 [Collapse]PANTHEON Web Guides
  [Expand]Ръководство за PANTHEON Web Light
  [Expand]Ръководство за PANTHEON Уеб Терминал
  [Expand]Ръководство за PANTHEON Web Legal
  [Expand]Архив на стари продукти
 [Collapse]PANTHEON Web User Manuals
  [Expand]Започване на PANTHEON Web
  [Expand]User Manual for PANTHEON Web Light
   Ръководство за потребителя за PANTHEON Web Terminal
  [Expand]Ръководство за потребителя за PANTHEON Web Legal
  [Expand]Архив на стари продукти
[Collapse]PANTHEON Гранула
 [Collapse]Ръководство за PANTHEON Гранули
  [Expand]Гранула за служители
  [Expand]Пътни заповеди Гранула
  [Expand]Гранула за документи и задачи
  [Expand]Гранула Табло
  [Expand]Гранула за B2B поръчки
  [Expand]Гранула за обслужване на клиент
  [Expand]Инвентаризация на дълготрайни активи
  [Expand]Гранула за складови наличности
 [Collapse]PANTHEON Granules
   Започване
   Using PANTHEON Granules at Tecta, a fictional company
  [Expand]PANTHEON Granules and activation
  [Expand]PANTHEON Granule Work records
  [Expand]PANTHEON Granule Travel orders
  [Expand]PANTHEON Granule Documents and Tasks
  [Expand]PANTHEON Granule B2B orders
  [Expand]PANTHEON Granule Dashboard
  [Expand]Полеви сервизен гранул
   PANTHEON Granules - FAQ
  [Expand]Инвентаризация на дълготрайни активи
  [Expand]Инвентаризация на склада Гранула
   Архив
[Expand]Потребителски сайт

Load Time: 437,591 ms
"
  1000002241 | 221864 | 407842 | Localized
Label

DBObjects APIs

               

In this chategory, you will find APIs that enable you to get, insert, update or delete almost any data from or to PANTHEON.

 

Table of contents

  1. Short description of DBObjects
  2. POST/api/DBObjects/execproc
  3. POST/api/DBObjects/selecttables
  4. POST/api/DBObjects/inserttable
  5. POST/api/DBObjects/updatetable
  6. POST/api/DBObjects/deletetable

 

1. Short description of DBObjects APIs:

POST/api/DBObjects/execproc Executes stored procedure(s) and creates PANTHEON temporary tables.
POST/api/DBObjects/selecttables Selects data from table(s) and creates PANTHEON temporary tables.
POST/api/DBObjects/inserttable Inserts data into a table using columns.
POST/api/DBObjects/updatetable Updates data in the table using columns and optional condition.
POST/api/DBObjects/deletetable Delete data  from table(s) base on condition (s)

2. POST/api/DBObjects/execproc

This API enables you to execute one or more procedures. If the procedure uses tempTables, it can be specified in the tempTables array parameters.  In the block procParams, you must specify procedure parameters. Results returned by the procedure can be presented in a .json file structure.

{
  "procedures": [
    {
      "procname": "string",
      "procParams": {
        "additionalProp1": "string",
        "additionalProp2": "string",
        "additionalProp3": "string"
      }
    }
  ],
  "inserts": [
    {
      "masterTable": "string",
      "fieldvalues": {
        "additionalProp1": "string",
        "additionalProp2": "string",
        "additionalProp3": "string"
      }
    }
  ],
  "updates": [
    {
      "masterTable": {
        "table": "string",
        "alias": "string"
      },
      "fieldvalues": {
        "additionalProp1": "string",
        "additionalProp2": "string",
        "additionalProp3": "string"
      },
      "tableFKs": [
        {
          "table": "string",
          "alias": "string",
          "join": "string",
          "parentAlias": "string",
          "fieldsToReturn": "string"
        }
      ],
      "customConditions": {
        "condition": "string",
        "params": [
          "string"
        ]
      }
    }
  ],
  "tempTables": [
    "string"
  ]
}

 

3. POST/api/DBObojects/selecttables

This API enables you to get data as a result of a query defined as the parameter masterTable with join tables in the parameters tableFKs with custom conditions in the parameters customConditions.

Additionally, you can sort your data using the parameters sortColumn and sortOrder. You can use the parameter tempTable in the query if you execute store procedure with result set.

{
  "start": 0,
  "length": 0,
  "fieldsToReturn": "string",
  "tableFKs": [
    {
      "table": "string",
      "alias": "string",
      "join": "string",
      "parentAlias": "string",
      "fieldsToReturn": "string"
    }
  ],
  "customConditions": {
    "condition": "string",
    "params": [
      "string"
    ]
  },
  "sortColumn": "string",
  "sortOrder": "string",
  "withSubSelects": 0,
  "masterTable": {
    "table": "string",
    "alias": "string"
  },
  "tempTables": [
    "string"
  ]
}

 

4. POST/api/DBObjects/inserttable

This API enables you to insert data into the table defined in the parameter masterTable. Additionally, tempTables can be created with parameters tempTables and data can be inserted in these temporary tables.

 

{
  "masterTable": "string",
  "fieldvalues": {
    "additionalProp1": "string",
    "additionalProp2": "string",
    "additionalProp3": "string"
  }
}

 

5. POST/api/DBObjects/updatetable

This API enables you to update data in the table as parameter masterTable, update data in the parameter fieldvalues with the ability to join tables in the parameters tableFKs with custom conditions in the parameters customConditions. 

 

{
  "masterTable": {
    "table": "string",
    "alias": "string"
  },
  "fieldvalues": {
    "additionalProp1": "string",
    "additionalProp2": "string",
    "additionalProp3": "string"
  },
  "tableFKs": [
    {
      "table": "string",
      "alias": "string",
      "join": "string",
      "parentAlias": "string",
      "fieldsToReturn": "string"
    }
  ],
  "customConditions": {
    "condition": "string",
    "params": [
      "string"
    ]
  }
}

 

6. POST/api/DBObjects/deletetable

This API enables you to delete data in the table as parameter masterTable, delete data in the parameter fieldvalues with the ability to join tables in the parameters tableFKs with custom conditions in the parameters customConditions. 

 

{
  "masterTable": {
    "table": "string",
    "alias": "string"
  },
  "tableFKs": [
    {
      "table": "string",
      "alias": "string",
      "join": "string",
      "parentAlias": "string",
      "fieldsToReturn": "string"
    }
  ],
  "customConditions": {
    "condition": "string",
    "params": [
      "string"
    ]
  }
}

 


 

Оценете темата
Темата беше ли ви полезна?
Коментар
Вашият коментар ще бъде видим и във форума!