Clients & Endpoints
There are 2 main ways to interact with 🚀✨AstralDB; python client and raw APIs.
Client
When using the python client, there is no need to run the server using astral
command.
Learn more about the python client here.
Endpoints
Right now, you can use your favorite way of using http requests. All the endpoints are listed here:
- GET
/stores
-> returns all stores in this 🚀✨AstralDB instance.
- POST
/get {store:str, key:str}
-> returns value ofkey
instore
. - POST
/set {store:str, key:str, value:list}
-> setsvalue
ofkey
instore
. - POST
/delete {store:str, key:str}
-> deletes key-value pair instore
.
- POST
/create_store {name:str}
-> create a new store. - POST
/delete_store {name:str}
-> deletes the store. - POST
/get_keys {name:str}
-> get all the keys in the store.
And that’s it! Lightweight, easy to use, and super-fast.