返回介绍

15.10. Database tables

发布于 2023-09-17 23:40:35 字数 4529 浏览 0 评论 0 收藏 0

15.10.1. List of tables

GET management/tables
Table 214. List of tables - Response codes
Response codeDescription
200Indicates the request was successful.

Success response body:

[
   {
    "name":"ACT_RU_VARIABLE",
    "url":"http://localhost:8182/management/tables/ACT_RU_VARIABLE",
    "count":4528
   },
   {
    "name":"ACT_RU_EVENT_SUBSCR",
    "url":"http://localhost:8182/management/tables/ACT_RU_EVENT_SUBSCR",
    "count":3
   }

]

15.10.2. Get a single table

GET management/tables/{tableName}
Table 215. Get a single table - URL parameters
ParameterRequiredValueDescription
tableNameYesStringThe name of the table to get.

Success response body:

{
    "name":"ACT_RE_PROCDEF",
    "url":"http://localhost:8182/management/tables/ACT_RE_PROCDEF",
    "count":60
}
Table 216. Get a single table - Response codes
Response codeDescription
200Indicates the table exists and the table count is returned.
404Indicates the requested table does not exist.

15.10.3. Get column info for a single table

GET management/tables/{tableName}/columns
Table 217. Get column info for a single table - URL parameters
ParameterRequiredValueDescription
tableNameYesStringThe name of the table to get.

Success response body:


{
   "tableName":"ACT_RU_VARIABLE",
   "columnNames":[
    "ID_",
    "REV_",
    "TYPE_",
    "NAME_"


   ],
   "columnTypes":[
    "VARCHAR",
    "INTEGER",
    "VARCHAR",
    "VARCHAR"


   ]
}
Table 218. Get column info for a single table - Response codes
Response codeDescription
200Indicates the table exists and the table column info is returned.
404Indicates the requested table does not exist.

15.10.4. Get row data for a single table

GET management/tables/{tableName}/data
Table 219. Get row data for a single table - URL parameters
ParameterRequiredValueDescription
tableNameYesStringThe name of the table to get.
Table 220. Get row data for a single table - URL query parameters
ParameterRequiredValueDescription
startNoIntegerIndex of the first row to fetch. Defaults to 0.
sizeNoIntegerNumber of rows to fetch, starting from start. Defaults to 10.
orderAscendingColumnNoStringName of the column to sort the resulting rows on, ascending.
orderDescendingColumnNoStringName of the column to sort the resulting rows on, descending.

Success response body:

{
  "total":3,
   "start":0,
   "sort":null,
   "order":null,
   "size":3,

   "data":[
    {
     "TASK_ID_":"2",
     "NAME_":"var1",
     "REV_":1,
     "TEXT_":"123",
     "LONG_":123,
     "ID_":"3",
     "TYPE_":"integer"
    }



   ]

}
Table 221. Get row data for a single table - Response codes
Response codeDescription
200Indicates the table exists and the table row data is returned.
404Indicates the requested table does not exist.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文