我的 Postman 查询 OmniIndex API 为什么只显示部分数据?

huangapple go评论57阅读模式
英文:

Why is my Postman query on the OmniIndex API only showing partial data?

问题

我正在尝试通过OmniIndex API在Postman上运行查询,以从我的存储中检索数据。但是,一些块数据仅显示以下内容。数据存储包含文件,我的完整响应如下:

{
   "results":[
      {
         "author":"已删除数据",
         "context":"",
         "context2":"",
         "directory":"已删除数据",
         "filecreateddate":"2023-05-19 13:54:47",
         "fileextension":"pdf",
         "filemodifieddate":"2023-05-19 14:03:34",
         "filename":"已删除数据",
         "filesize":"1860991",
         "fullpath":"已删除数据",
         "sentiment":"",
         "sentiment2":""
      }
   ]
}

可以看到,所有加密数据点都替换为"已删除数据"。我的JSON请求如下(不包含凭据):

{
   "analyticQuery":"SELECT authorowners, context, context2, sentiment, sentiment2, directoryowners, filecreateddate, filemodifieddate, fileextension, filenameowners, filesize, fullpathowners FROM WHERE hash='AFD0C8D2B777D056F2D23D4A4FB7D18BD238533317F6B3F9EF0589FB5784B8B3'",
   "password":"",
   "unitName":"",
   "user":"",
   "server":""
}
  • 我已经搜索过,但似乎找不到答案。
英文:

I am trying to run a query through Postman on the OmniIndex API to retrieve data from my store.

But some of the blocks data are only showing The data store holds files and my full response is:

    {
    "results": [
    {
        "author": "Data has been redacted.",
        "context": "",
        "context2": "",
        "directory": "Data has been redacted.",
        "filecreateddate": "2023-05-19 13:54:47",
        "fileextension": "pdf",
        "filemodifieddate": "2023-05-19 14:03:34",
        "filename": "Data has been redacted.",
        "filesize": "1860991",
        "fullpath": "Data has been redacted.",
        "sentiment": "",
        "sentiment2": ""
    }
    ]
     }

As can be seen all of t he encrypted data points are replaced with "Data has been redacted".
My json request is (Without creds)

{

"analyticQuery": "SELECT authorowners, context, context2, sentiment, sentiment2, directoryowners, 
filecreateddate, filemodifieddate, fileextension, filenameowners, filesize, fullpathowners FROM WHERE

 hash='AFD0C8D2B777D056F2D23D4A4FB7D18BD238533317F6B3F9EF0589FB5784B8B3'",
 "password": "",
 "unitName": "",
"user": "",
"server": ""
 }
  • I have looked around but cannot seem to find an answer.

答案1

得分: 2

我在OmniIndex工作,可以帮助您的查询。

JSON请求中需要包含一个键/值对:'showProtected / true'

这将告诉API显示您可以访问的加密数据的明文版本。

希望这有所帮助!我从我的OmniIndex专业知识和文档中得到了答案。

https://omniindex.readthedocs.io/en/latest/_modules/omniindex/api.html#

英文:

I work for OmniIndex and can help with your query.

The json request needs to have inside it a key/value pair of
'showProtected / true'

This will tell the API to show you the plaintext versions of ciphered data that you have access to.

I hope this helps! I got the answer from my OmniIndex expertise and the documentation.

https://omniindex.readthedocs.io/en/latest/_modules/omniindex/api.html#

答案2

得分: 2

你没有收到数据是因为内容已加密,默认情况下保持加密。如果希望输出结果,必须指定点,因此你的 JSON 请求应该如下所示:

{
    "analyticQuery": "SELECT authorowners, context, context2, sentiment, sentiment2, directoryowners, filecreateddate, filemodifieddate, fileextension, filenameowners, filesize, fullpathowners FROM WHERE hash='AFD0C8D2B777D056F2D23D4A4FB7D18BD238533317F6B3F9EF0589FB5784B8B3'",
    "password": "",
    "unitName": "",
    "user": "",
    "showProtected": "true",
    "server": ""
}

请注意 showProtected 键,默认为 false。你可以在 Swagger Hub 上查看完整的请求 Swagger Hub

英文:

You are not receiving the data because the content is encrypted and by default it remains that way. If you wish to output the results you have to specify the point so your json request should read

{

"analyticQuery": "SELECT authorowners, context, context2, sentiment, sentiment2, directoryowners, 
filecreateddate, filemodifieddate, fileextension, filenameowners, filesize, fullpathowners FROM WHERE

 hash='AFD0C8D2B777D056F2D23D4A4FB7D18BD238533317F6B3F9EF0589FB5784B8B3'",
 "password": "",
 "unitName": "",
"user": "",
"showProtected" : "true",
"server": ""
 }

Note the showProtected key. It is defaulted to false

you can see the full request on Swagger Hub Swagger Hub

huangapple
  • 本文由 发表于 2023年6月1日 02:22:37
  • 转载请务必保留本文链接:https://go.coder-hub.com/76376334.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定