karol-brejna-i / tigergraph-restpp-api

TigerGraph's REST++ API descriptin
Apache License 2.0
0 stars 2 forks source link

Multiple ids for /abort_query #17

Open karol-brejna-i opened 2 years ago

karol-brejna-i commented 2 years ago

Tried to do a call with multiple ids:

curl -X 'GET'   'http://192.168.0.105:9000/abortquery/mygraph?requestid=65632.RESTPP_1_1.1640614087990.N&requestid=93.RESTPP_1_1.1640614057969.N'   -H 'accept: application/json'

{"version":{"edition":"enterprise","api":"v2","schema":0},"error":true,"message":"At most 1 values can be provided for parameter requestid, but 2 value(s) are given.","code":"REST-30000"}

got this error: At most 1 values can be provided for parameter requestid, but 2 value(s) are given

The docs suggest that it is doable:

curl -X GET "localhost:9000/abortquery/poc_graph?requestid=16842763.RESTPP_1_1.1561401340785.N&requestid=16973833.RESTPP_1_1.1561401288421.N"

{
  "version": {
    "edition": "enterprise",
    "api": "v2",
    "schema": 0
  },
  "error": false,
  "message": "",
  "results": [
    {
      "aborted_queries": [
        {
          "requestid": "16842763.RESTPP_1_1.1561401340785.N",
          "url": "/sleepgpe?milliseconds=110000"
        },
        {
          "requestid": "16973833.RESTPP_1_1.1561401288421.N",
          "url": "/sleepgpe?milliseconds=100000"
        }
      ]
    }
  ],
  "code": "REST-0000"
}

Check in the newest version of tigergraph (you use 3.3). BTW: the docs for 3.3 are the same in this matter.

karol-brejna-i commented 2 years ago

Checked this out in 3.4. The same. Asked question: https://community.tigergraph.com/t/restpp-abortquery-description/1766

JonHerke-TG commented 2 years ago

Saw this post. I'll look into it @karol-brejna-i