Hi all, The documentation mentions it’s possible t...
# troubleshoot
b
Hi all, The documentation mentions it’s possible to search a dataset using OpenAPI, but I can’t find any documentation on that. Does this refer to the
/entities/v1/latest
endpoint? Because that only allows to search on URN, and I have some issues when I call that (see 🧵 )
l
Hey there 👋 I'm The DataHub Community Support bot. I'm here to help make sure the community can best support you with your request. Let's double check a few things first: 1️⃣ There's a lot of good information on our docs site: www.datahubproject.io/docs, Have you searched there for a solution? Yes button 2️⃣ It's not uncommon that someone has run into your exact problem before in the community. Have you searched Slack for similar issues? Yes button
b
When I call the endpoint with a URN that does not exist, I always get a
200
Response. Same as with a URN that does exist:
Copy code
GET https://catalog.tst.k8s.ddtplatform.be/openapi/entities/v1/latest?urns=urn%3Ali%3Adataset%3A%28urn%3Ali%3AdataPlatform%3Alinkeddata%2CdoesNotExist%2CPROD%29&aspectNames=DataSet
Response:
Copy code
{
  "responses": {
    "urn:li:dataset:(urn:li:dataPlatform:linkeddata,doesNotExist,PROD)": {
      "entityName": "dataset",
      "urn": "urn:li:dataset:(urn:li:dataPlatform:linkeddata,doesNotExist,PROD)",
      "aspects": {
        "datasetKey": {
          "name": "datasetKey",
          "type": "VERSIONED",
          "version": 0,
          "value": {
            "__type": "DatasetKey",
            "platform": "urn:li:dataPlatform:linkeddata",
            "name": "doesNotExist",
            "origin": "PROD"
          },
          "created": {
            "time": 1682069944862,
            "actor": "urn:li:corpuser:__datahub_system"
          }
        }
      }
    }
  }
}
a
I think @big-carpet-38439 may be able to provide a little further guidance
b
@astonishing-answer-96712 I think Bram is pointing out that the search API may not exist at OpenAPI layer. I actually agree that I do not see this. I think this is a docs bug cc @delightful-ram-75848
b
Yup, that was indeed my question. I failed to find a search API in openApi even though the docs claim there is. And was thinking maybe there was an undocumented param in the
/entities/v1/latest
endpoint, but that doesn’t seem to be the case.