View Source Qdrant.Api.Http.Client (Qdrant v0.0.8)

Qdrant.Api.Client is a Tesla-based client for the Qdrant API. The module provides methods for interacting with the Qdrant API server.

example

Example

iex> Qdrant.Api.Client.get("/collections")
{:ok, %Tesla.Env{status: 200, body: %{"collections" => []}}}

Or as a macro:

iex> use Qdrant.Api.Http.Client
iex> scope("/collections")
iex> get("")
# The path is relative to the scope path set above ("/collections")
# and not the base url set in the config file.
# This is so that you don't have to repeat the scope path in every request just the relative path.
{:ok, %Tesla.Env{status: 200, body: %{"collections" => [...]}}}