SQL 命令在 Orientdb REST 中不可用 api

SQL commands not available in Orientdb REST api

我正在尝试 POST 使用 REST api 命令到 Orientdb。当我 POST 以下 json:

{
"command" : "select * from system"
}

我收到这样的回复:

    {
      "errors": [
        {
          "reason": 500,
          "content": "com.orientechnologies.orient.core.command.OCommandExecutorNotFoundException: Cannot find a command executor for the command request: sql.{\n\"command\" : \"select from system\"\n}",
          "code": 500
        }
      ]

}

但是,该命令适用于 url

http://localhost:2480/command/demo1/sql/select * from system

但不在 json.

从 OrientDb 2.2 版本开始是可能的。 查看文档 http://orientdb.com/docs/2.1/OrientDB-REST.html#command