apache / gravitino

World's most powerful open data catalog for building a high-performance, geo-distributed and federated metadata lake.
https://gravitino.apache.org
Apache License 2.0
958 stars 302 forks source link

[FEATURE] A new unified api for all the entity list operations #3485

Open LauraXia123 opened 4 months ago

LauraXia123 commented 4 months ago

Describe the feature

We need a new unified api and name filter support for all the entity list operations. The filter operation is above the tree UI, whatever filter catalog, schema or table name. eg: A new unified api like: api/v1/metadata get datas by queryType filter:

curl 'https://xxxxx/api/v1/metadata' \
  -H 'Accept: application/json, text/plain, */*' \
  -H 'Accept-Language: zh-CN,zh;q=0.9' \
  -H 'Cache-Control: no-cache' \
  -H 'Connection: keep-alive' \
  -H 'Content-Type: application/json' \
  --data-raw '{"queryType":"CATALOGS"}'
image

curl 'https://xxxx/api/v1/metadata' \ -H 'Accept: application/json, text/plain, /' \ -H 'Accept-Language: zh-CN,zh;q=0.9' \ -H 'Cache-Control: no-cache' \ -H 'Connection: keep-alive' \ -H 'Content-Type: application/json' \ -H 'Pragma: no-cache' \ --data-raw '{"queryType":"SCHEMAS","catalogIdentifier":{"catalogName":"catalog_hive"}}'

image

Motivation

No response

Describe the solution

No response

Additional context

No response

LauraXia123 commented 4 months ago

And get metadatas filter by catalog type [relational/messaging/fileset]