diff --git a/API_Reference/milvus-restful/v2.4.x/About.md b/API_Reference/milvus-restful/v2.4.x/About.md index ceb674cde..6f8db0344 100644 --- a/API_Reference/milvus-restful/v2.4.x/About.md +++ b/API_Reference/milvus-restful/v2.4.x/About.md @@ -11,10 +11,10 @@ The prefix of an API endpoint should always be the URI of your Milvus instance, The following is the API endpoint used to list collections in a Milvus cluster. ```shell -export MILVUS_URI="http://localhost:19530" +export CLUSTER_ENDPOINT="http://localhost:19530" curl --request GET \ - --url '${MILVUS_URI}/v1/vector/collections' \ + --url '${CLUSTER_ENDPOINT}/v2/vectordb/collections/list' \ --header 'accept: application/json' \ --header 'content-type: application/json' ``` @@ -24,11 +24,11 @@ curl --request GET \ With default settings, you do not need to provide any authentication credentials to access the API endpoints. However, if you have enabled authentication in your Milvus instance, you need to provide the correct credentials in the request header. You can use a token as the authentication method when you access the API endpoints. To obtain a token, you should use a colon (:) to concatenate the username and password that you use to access your Milvus instance. For example, `root:milvus`. ```shell -export MILVUS_URI="http://localhost:19530" +export CLUSTER_ENDPOINT="http://localhost:19530" export TOKEN="root:milvus" curl --request GET \ - --url '${MILVUS_URI}/v1/vector/collections' \ + --url '${CLUSTER_ENDPOINT}/v2/vectordb/collections/list' \ --header "Authorization: Bearer ${TOKEN}" \ --header 'accept: application/json' \ --header 'content-type: application/json' @@ -36,4 +36,4 @@ curl --request GET \ ## API endpoint versioning -Since v2.3.13, Milvus starts to offer two sets of API endpoints, namely v1 and v2. The v1 endpoints only covers collection and vector operations, while the v2 endpoints cover more operations such as index management, partition management, and role-based access control (RBAC) operations. The v2 endpoints are the latest and recommended set of endpoints. +Milvus offers two sets of API endpoints, namely v1 and v2. The v1 endpoints only covers collection and vector operations, while the v2 endpoints cover more operations such as index management, partition management, and role-based access control (RBAC) operations. The v1 endpoints are to be deprecated in the near future, and the v2 endpoints are the recommended ones to use. diff --git a/API_Reference_MDX/milvus-restful/v2.3.x/About.md b/API_Reference_MDX/milvus-restful/v2.3.x/About.md new file mode 100644 index 000000000..6f8db0344 --- /dev/null +++ b/API_Reference_MDX/milvus-restful/v2.3.x/About.md @@ -0,0 +1,39 @@ +# Get Started + +Milvus offers RESTful API for you to manipulate your collections and data stored in them. Before you dive in, there are several things that are worth noting: + +## Understanding the API endpoints + +These API endpoints involve manipulating collections in a specified cluster as well as the data in a specific collection. + +The prefix of an API endpoint should always be the URI of your Milvus instance, such as `localhost:19530`. + +The following is the API endpoint used to list collections in a Milvus cluster. + +```shell +export CLUSTER_ENDPOINT="http://localhost:19530" + +curl --request GET \ + --url '${CLUSTER_ENDPOINT}/v2/vectordb/collections/list' \ + --header 'accept: application/json' \ + --header 'content-type: application/json' +``` + +## Authentication credentials + +With default settings, you do not need to provide any authentication credentials to access the API endpoints. However, if you have enabled authentication in your Milvus instance, you need to provide the correct credentials in the request header. You can use a token as the authentication method when you access the API endpoints. To obtain a token, you should use a colon (:) to concatenate the username and password that you use to access your Milvus instance. For example, `root:milvus`. + +```shell +export CLUSTER_ENDPOINT="http://localhost:19530" +export TOKEN="root:milvus" + +curl --request GET \ + --url '${CLUSTER_ENDPOINT}/v2/vectordb/collections/list' \ + --header "Authorization: Bearer ${TOKEN}" \ + --header 'accept: application/json' \ + --header 'content-type: application/json' +``` + +## API endpoint versioning + +Milvus offers two sets of API endpoints, namely v1 and v2. The v1 endpoints only covers collection and vector operations, while the v2 endpoints cover more operations such as index management, partition management, and role-based access control (RBAC) operations. The v1 endpoints are to be deprecated in the near future, and the v2 endpoints are the recommended ones to use. diff --git a/API_Reference_MDX/milvus-restful/v2.4.x/About.md b/API_Reference_MDX/milvus-restful/v2.4.x/About.md new file mode 100644 index 000000000..6f8db0344 --- /dev/null +++ b/API_Reference_MDX/milvus-restful/v2.4.x/About.md @@ -0,0 +1,39 @@ +# Get Started + +Milvus offers RESTful API for you to manipulate your collections and data stored in them. Before you dive in, there are several things that are worth noting: + +## Understanding the API endpoints + +These API endpoints involve manipulating collections in a specified cluster as well as the data in a specific collection. + +The prefix of an API endpoint should always be the URI of your Milvus instance, such as `localhost:19530`. + +The following is the API endpoint used to list collections in a Milvus cluster. + +```shell +export CLUSTER_ENDPOINT="http://localhost:19530" + +curl --request GET \ + --url '${CLUSTER_ENDPOINT}/v2/vectordb/collections/list' \ + --header 'accept: application/json' \ + --header 'content-type: application/json' +``` + +## Authentication credentials + +With default settings, you do not need to provide any authentication credentials to access the API endpoints. However, if you have enabled authentication in your Milvus instance, you need to provide the correct credentials in the request header. You can use a token as the authentication method when you access the API endpoints. To obtain a token, you should use a colon (:) to concatenate the username and password that you use to access your Milvus instance. For example, `root:milvus`. + +```shell +export CLUSTER_ENDPOINT="http://localhost:19530" +export TOKEN="root:milvus" + +curl --request GET \ + --url '${CLUSTER_ENDPOINT}/v2/vectordb/collections/list' \ + --header "Authorization: Bearer ${TOKEN}" \ + --header 'accept: application/json' \ + --header 'content-type: application/json' +``` + +## API endpoint versioning + +Milvus offers two sets of API endpoints, namely v1 and v2. The v1 endpoints only covers collection and vector operations, while the v2 endpoints cover more operations such as index management, partition management, and role-based access control (RBAC) operations. The v1 endpoints are to be deprecated in the near future, and the v2 endpoints are the recommended ones to use.