Skip to content

Commit

Permalink
feat(artifact): support search chunk & source (#272)
Browse files Browse the repository at this point in the history
Because

artifact need the search chunk and source endpoint

This commit

adds those endpoints
  • Loading branch information
Yougigun authored Nov 29, 2024
1 parent 1f223b1 commit 48b7573
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions config/settings-env/endpoints.json
Original file line number Diff line number Diff line change
Expand Up @@ -3010,13 +3010,27 @@
"chunkUids"
]
},
{
"endpoint": "/v1alpha/namespaces/{namespace_id}/chunks",
"url_pattern": "/v1alpha/namespaces/{namespace_id}/chunks",
"method": "GET",
"timeout": "10s",
"input_query_strings": ["chunkUids"]
},
{
"endpoint": "/v1alpha/namespaces/{namespace_id}/catalogs/{catalog_id}/files/{file_uid}/source",
"url_pattern": "/v1alpha/namespaces/{namespace_id}/catalogs/{catalog_id}/files/{file_uid}/source",
"method": "GET",
"timeout": "10s",
"input_query_strings": []
},
{
"endpoint": "/v1alpha/namespaces/{namespace_id}/source-files",
"url_pattern": "/v1alpha/namespaces/{namespace_id}/source-files",
"method": "GET",
"timeout": "10s",
"input_query_strings": ["fileUids"]
},
{
"endpoint": "/v1alpha/chunks/{chunk_uid}",
"url_pattern": "/v1alpha/chunks/{chunk_uid}",
Expand Down Expand Up @@ -3159,6 +3173,18 @@
"url_pattern": "/artifact.artifact.v1alpha.ArtifactPublicService/GetObjectDownloadURL",
"method": "POST",
"timeout": "30s"
},
{
"endpoint": "/artifact.artifact.v1alpha.ArtifactPublicService/SearchChunks",
"url_pattern": "/artifact.artifact.v1alpha.ArtifactPublicService/SearchChunks",
"method": "POST",
"timeout": "10s"
},
{
"endpoint": "/artifact.artifact.v1alpha.ArtifactPublicService/SearchSourceFiles",
"url_pattern": "/artifact.artifact.v1alpha.ArtifactPublicService/SearchSourceFiles",
"method": "POST",
"timeout": "10s"
}
],
"grpc_no_auth": [
Expand Down

0 comments on commit 48b7573

Please sign in to comment.