Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add typescript http client #253

Merged
merged 26 commits into from
Oct 26, 2023
Merged

add typescript http client #253

merged 26 commits into from
Oct 26, 2023

Conversation

shanghaikid
Copy link
Contributor

@shanghaikid shanghaikid commented Oct 25, 2023

In this pr, I add a typescript client which implement all the method described in
https://milvus.io/api-reference/restful/v2.3.x/About.md

Now user is able to use milvus/zilliz cloud http api

import { HttpClient } from '@zilliz/milvus2-sdk-node';

const client = new HttpClient({
endpoint: 'http://**.zillizcloud.com/'
token: '' or username password
})
 
// APIs
client.createCollection
client.describeCollection
client.dropCollection
client.listCollection
client.insert
client.query
client.search
client.delete
client.get

shanghaikid and others added 19 commits October 20, 2023 16:57
Signed-off-by: ryjiang <[email protected]>
Signed-off-by: ryjiang <[email protected]>
Signed-off-by: ruiyi.jiang <[email protected]>
Signed-off-by: ruiyi.jiang <[email protected]>
Signed-off-by: ruiyi.jiang <[email protected]>
Signed-off-by: ruiyi.jiang <[email protected]>
Signed-off-by: ryjiang <[email protected]>
Signed-off-by: ryjiang <[email protected]>
Signed-off-by: ryjiang <[email protected]>
Signed-off-by: ruiyi.jiang <[email protected]>
Signed-off-by: ruiyi.jiang <[email protected]>
Signed-off-by: ryjiang <[email protected]>
Signed-off-by: ryjiang <[email protected]>
Signed-off-by: ruiyi.jiang <[email protected]>
Signed-off-by: ruiyi.jiang <[email protected]>
@shanghaikid shanghaikid changed the title add typescript client add typescript http client Oct 25, 2023
Signed-off-by: ruiyi.jiang <[email protected]>
Signed-off-by: ruiyi.jiang <[email protected]>
Signed-off-by: ruiyi.jiang <[email protected]>
Signed-off-by: ruiyi.jiang <[email protected]>
Signed-off-by: ruiyi.jiang <[email protected]>
@codecov
Copy link

codecov bot commented Oct 25, 2023

Codecov Report

Merging #253 (58a5668) into main (54e98cd) will decrease coverage by 0.17%.
Report is 3 commits behind head on main.
The diff coverage is 91.78%.

❗ Current head 58a5668 differs from pull request most recent head b72797f. Consider uploading reports for the commit b72797f to get more accurate results

@@            Coverage Diff             @@
##             main     #253      +/-   ##
==========================================
- Coverage   95.74%   95.57%   -0.17%     
==========================================
  Files          33       37       +4     
  Lines        1669     1742      +73     
  Branches      442      454      +12     
==========================================
+ Hits         1598     1665      +67     
- Misses         64       70       +6     
  Partials        7        7              
Files Coverage Δ
milvus/HttpClient.ts 100.00% <100.00%> (ø)
milvus/const/defaults.ts 100.00% <100.00%> (ø)
milvus/http/Collection.ts 100.00% <100.00%> (ø)
milvus/http/index.ts 100.00% <100.00%> (ø)
milvus/index.ts 100.00% <100.00%> (ø)
milvus/types.ts 100.00% <100.00%> (ø)
test/tools/index.ts 100.00% <100.00%> (ø)
milvus/http/Vector.ts 64.70% <64.70%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@sre-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: nameczz, shanghaikid

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@shanghaikid shanghaikid merged commit 9c59ff2 into main Oct 26, 2023
1 of 2 checks passed
@shanghaikid shanghaikid deleted the restful branch October 26, 2023 11:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants