TigerGraph文档
2.3
2.3
  • TigerGraph 2.3 技术文档目录
  • TigerGraph 版本比较
  • GSQL 图数据库算法库
  • 版本发布, 功能变更
    • 版本发布 - TigerGraph 2.3
      • 版本发布 - TigerGraph 2.2
    • 变更日志
  • INTRODUCTION AND OVERVIEW
    • TigerGraph 入门指南
    • GSQL 101
      • 环境准备
      • 定义一个Schema
      • 加载数据
      • 使用内置的SELECT进行查询
      • 使用参数化GSQL查询进行查询
      • 总结:你学到的东西
    • TigerGraph平台概览
    • Knowledge Base and FAQs
      • TigerGraph 常见问题
      • GSQL 常见问题
    • Kafka Loader用户手册
  • 系统管理指南
    • TigerGraph 管理员指南
      • 硬件及软件配置
      • 安装和配置
        • 安装指南
        • 高可用(HA)集群配置
        • 集群的扩容
        • 软件许可激活
      • 系统权限管理
        • 用户权限及验证
        • LDAP
        • 单点登录(SSO)
      • 数据加密
        • 链接的加密
        • 非活跃数据(Data At Rest)的加密
      • 系统管理
        • 基于Web的管理工具:Admin Portal
        • 使用gadmin工具管理
        • 数据的备份与恢复
        • 系统维护中的常见问题
  • 开发者指南
    • GSQL 语言开发指南
      • 第一部分 数据定义及加载
        • 简介
        • 系统和语言基础
        • 定义一个图模型(Graph Schema)
        • 修改图模型
        • 创建数据加载任务
        • 执行加载作业
        • 附录
          • 关键词和系统预留词
          • GSQL 从开始到结束的整个过程和数据流向
      • 第二部分 查询
        • 简介
        • 创建、安装、执行查询
        • 数据类型
        • 累加器(Accumulators)
        • 运算符,函数和表达式
        • 声明和赋值
        • SELECT语句
        • 控制流语句
        • 数据修改语句
        • 输出语句以及文件对象
        • 异常处理语句
        • 注释
        • 附录
          • 附录A: 一般错误和问题
          • 附录B:查询语言的完整正式语法
          • 附录C. 图查询语言的预留词列表
          • 附录D. 示例
    • RESTPP API 开发指南
      • 简介
      • RESTPP请求
      • 系统预制函数(Endpoints)
      • 系统预制函数请求格式(JSON)
    • 事务处理及ACID支持
  • 图形界面 可视化
    • GraphStudio 用户指南
      • GraphStudio 概述
      • GraphStudio许可证
      • 用户权限管理
      • 设计图模型(Schema)
      • 将数据映射到图
      • 加载数据
      • 探索图数据
      • 编写查询
      • 导入和导出解决方案
      • 已知问题
      • GraphStudio中的专利及第三方软件版权说明
Powered by GitBook
On this page

Was this helpful?

  1. 开发者指南
  2. RESTPP API 开发指南

系统预制函数请求格式(JSON)

下面这个请求:

curl -X GET "http://server_ip:9000/endpoints?builtin=true"

会生成如下输出结果。该输出在调整完格式后大约为400行。除了列出所有端点之外,该JSON格式的输出结果还会列出每一个端点必须的参数和可选的参数。对应每个参数,还会列举出对应的属性名。

  • default

  • max_count

  • min_count

  • type

  • max_length

  • is_id

  • id_type

由于这些内容本身并不足以让我们完全理解每一个端点,所以额外的描述性参数名和属性值则起到了补充说明的作用。

{
   "DELETE /graph/{graph_name}/delete_by_type/vertices/{vertex_type}" : {
      "parameters" : {
         "ack" : {
            "default" : "all",
            "max_count" : 1,
            "min_count" : 1,
            "options" : [ "all", "none" ],
            "type" : "STRING"
         },
         "permanent" : {
            "default" : "false",
            "max_count" : 1,
            "min_count" : 1,
            "type" : "BOOL"
         },
         "vertex_type" : {
            "type" : "TYPENAME"
         }
      }
   },
   "DELETE /graph/{graph_name}/edges/{source_vertex_type}/{source_vertex_id}/{edge_type}/{target_vertex_type}/{target_vertex_id}" : {
      "parameters" : {
         "edge_type" : {
            "max_count" : 1,
            "min_count" : 0,
            "type" : "STRING"
         },
         "filter" : {
            "max_count" : 1,
            "max_length" : 2560,
            "min_count" : 0,
            "type" : "STRING"
         },
         "limit" : {
            "max_count" : 1,
            "min_count" : 0,
            "type" : "UINT64"
         },
         "not_wildcard" : {
            "max_count" : 1,
            "min_count" : 0,
            "type" : "BOOL"
         },
         "permanent" : {
            "default" : "false",
            "max_count" : 1,
            "min_count" : 1,
            "type" : "BOOL"
         },
         "select" : {
            "max_count" : 1,
            "max_length" : 2560,
            "min_count" : 0,
            "type" : "STRING"
         },
         "sort" : {
            "max_count" : 1,
            "max_length" : 2560,
            "min_count" : 0,
            "type" : "STRING"
         },
         "source_vertex_id" : {
            "id_type" : "$source_vertex_type",
            "is_id" : true,
            "max_count" : 1,
            "max_length" : 256,
            "min_count" : 1,
            "type" : "STRING"
         },
         "source_vertex_type" : {
            "max_count" : 1,
            "min_count" : 1,
            "type" : "TYPENAME"
         },
         "target_vertex_id" : {
            "id_type" : "$target_vertex_type",
            "is_id" : true,
            "max_count" : 1,
            "max_length" : 256,
            "min_count" : 0,
            "type" : "STRING"
         },
         "target_vertex_type" : {
            "max_count" : 1,
            "min_count" : 0,
            "type" : "TYPENAME"
         },
         "timeout" : {
            "default" : "0",
            "max_count" : 1,
            "min_count" : 0,
            "type" : "UINT32"
         }
      }
   },
   "DELETE /graph/{graph_name}/vertices/{vertex_type}/{vertex_id}" : {
      "parameters" : {
         "filter" : {
            "max_count" : 1,
            "max_length" : 2560,
            "min_count" : 0,
            "type" : "STRING"
         },
         "limit" : {
            "max_count" : 1,
            "min_count" : 0,
            "type" : "UINT64"
         },
         "permanent" : {
            "default" : "false",
            "max_count" : 1,
            "min_count" : 1,
            "type" : "BOOL"
         },
         "sort" : {
            "max_count" : 1,
            "max_length" : 2560,
            "min_count" : 0,
            "type" : "STRING"
         },
         "timeout" : {
            "default" : "0",
            "max_count" : 1,
            "min_count" : 0,
            "type" : "UINT32"
         },
         "vertex_id" : {
            "id_type" : "$vertex_type",
            "is_id" : true,
            "max_count" : 1,
            "max_length" : 2560,
            "min_count" : 0,
            "type" : "STRING"
         },
         "vertex_type" : {
            "type" : "TYPENAME"
         }
      }
   },
   "GET /echo" : {
      "parameters" : {
         "sleep" : {
            "default" : "0",
            "type" : "INT32"
         }
      }
   },
   "GET /endpoints" : {
      "parameters" : {
         "builtin" : {
            "default" : "false",
            "max_count" : 1,
            "min_count" : 0,
            "type" : "BOOL"
         },
         "dynamic" : {
            "default" : "false",
            "max_count" : 1,
            "min_count" : 0,
            "type" : "BOOL"
         },
         "static" : {
            "default" : "false",
            "max_count" : 1,
            "min_count" : 0,
            "type" : "BOOL"
         }
      }
   },
  "GET /graph/{graph_name}/edges/{source_vertex_type}/{source_vertex_id}/{edge_type}/{target_vertex_type}/{target_vertex_id}" : {
      "parameters" : {
         "count_only" : {
            "default" : "false",
            "max_count" : 1,
            "min_count" : 0,
            "type" : "BOOL"
         },
         "edge_type" : {
            "max_count" : 1,
            "min_count" : 0,
            "type" : "STRING"
         },
         "filter" : {
            "max_count" : 1,
            "max_length" : 2560,
            "min_count" : 0,
            "type" : "STRING"
         },
         "limit" : {
            "max_count" : 1,
            "min_count" : 0,
            "type" : "UINT64"
         },
         "not_wildcard" : {
            "max_count" : 1,
            "min_count" : 0,
            "type" : "BOOL"
         },
         "select" : {
            "max_count" : 1,
            "max_length" : 2560,
            "min_count" : 0,
            "type" : "STRING"
         },
         "sort" : {
            "max_count" : 1,
            "max_length" : 2560,
            "min_count" : 0,
            "type" : "STRING"
         },
         "source_vertex_id" : {
            "id_type" : "$source_vertex_type",
            "is_id" : true,
            "max_count" : 1,
            "max_length" : 256,
            "min_count" : 1,
            "type" : "STRING"
         },
         "source_vertex_type" : {
            "max_count" : 1,
            "min_count" : 1,
            "type" : "TYPENAME"
         },
         "target_vertex_id" : {
            "id_type" : "$target_vertex_type",
            "is_id" : true,
            "max_count" : 1,
            "max_length" : 256,
            "min_count" : 0,
            "type" : "STRING"
         },
         "target_vertex_type" : {
            "max_count" : 1,
            "min_count" : 0,
            "type" : "TYPENAME"
         },
         "timeout" : {
            "default" : "0",
            "max_count" : 1,
            "min_count" : 0,
            "type" : "UINT32"
         }
      }
   },
   "GET /graph/{graph_name}/vertices/{vertex_type}/{vertex_id}" : {
      "parameters" : {
         "count_only" : {
            "default" : "false",
            "max_count" : 1,
            "min_count" : 0,
            "type" : "BOOL"
         },
         "filter" : {
            "max_count" : 1,
            "max_length" : 2560,
            "min_count" : 0,
            "type" : "STRING"
         },
         "limit" : {
            "max_count" : 1,
            "min_count" : 0,
            "type" : "UINT64"
         },
         "select" : {
            "max_count" : 1,
            "max_length" : 2560,
            "min_count" : 0,
            "type" : "STRING"
         },
         "sort" : {
            "max_count" : 1,
            "max_length" : 2560,
            "min_count" : 0,
            "type" : "STRING"
         },
         "timeout" : {
            "default" : "0",
            "max_count" : 1,
            "min_count" : 0,
            "type" : "UINT32"
         },
         "vertex_id" : {
            "id_type" : "$vertex_type",
            "is_id" : true,
            "max_count" : 1,
            "max_length" : 2560,
            "min_count" : 0,
            "type" : "STRING"
         },
         "vertex_type" : {
            "type" : "TYPENAME"
         }
      }
   },
   "GET /statistics" : {
      "parameters" : {
         "seconds" : {
            "default" : "10",
            "type" : "UINT32"
         },
         "segments" : {
            "default" : "10",
            "max" : "100",
            "min" : "1",
            "type" : "UINT32"
         }
      }
   },
   "GET /version" : null,
   "POST /builtins" : null,
   "POST /ddl/{graph_name}" : {
      "parameters" : {
         "ack" : {
            "default" : "all",
            "max_count" : 1,
            "min_count" : 1,
            "options" : [ "all", "none" ],
            "type" : "STRING"
         },
         "concise" : {
            "default" : "false",
            "max_count" : 1,
            "min_count" : 1,
            "type" : "BOOL"
         },
         "eol" : {
            "default" : "\n",
            "max_count" : 1,
            "max_length" : 4,
            "min_count" : 0,
            "min_length" : 1,
            "type" : "STRING"
         },
         "filename" : {
            "default" : "__GSQL_FILENAME__",
            "max_count" : 1,
            "min_count" : 0,
            "type" : "STRING"
         },
         "sep" : {
            "default" : ",",
            "max_count" : 1,
            "max_length" : 4,
            "min_count" : 0,
            "min_length" : 1,
            "type" : "STRING"
         },
         "tag" : {
            "max_count" : 1,
            "min_count" : 1,
            "type" : "STRING"
         },
         "timeout" : {
            "default" : "0",
            "max_count" : 1,
            "min_count" : 0,
            "type" : "UINT32"
         }
      }
   },
   "POST /echo" : {
      "parameters" : {
         "sleep" : {
            "default" : "0",
            "type" : "INT32"
         }
      }
   },
   "POST /graph/{graph_name}" : {
      "parameters" : {
         "ack" : {
            "default" : "all",
            "max_count" : 1,
            "min_count" : 1,
            "options" : [ "all", "none" ],
            "type" : "STRING"
         }
      }
   }
}
Previous系统预制函数(Endpoints)Next事务处理及ACID支持

Last updated 6 years ago

Was this helpful?