英文:
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
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论