API Documentation
The Lucid API is the logical interface used to interact with a node. By default, your node's server listens on port 7021.
Store Data (Create & Update)
PUT
https://localhost:7021/api/kv/:key
This endpoint allows you store data at a specific key. If the key is not used yet, it will be created.
Path Parameters
key
string
Key of the value to store
Headers
Authorization
string
API authentification JSON Web Token
Request Body
Raw Body
string
Raw body (Plain text, JSON, ...) or raw binary content
Get Data
GET
https://localhost:7021/api/kv/:key
This endpoint allows you to get data associated with a key.
Path Parameters
key
string
Key of the data to get
Headers
Authorization
string
API authentification JSON Web Token
Delete Data
DELETE
https://localhost:7021/api/kv/:key
This endpoint allows you to delete an existing key with its associated data.
Path Parameters
key
string
Key of the data to remove
Headers
Authorization
string
API authentification JSON Web Token
Check key initialization
HEAD
https://localhost:7021/api/kv/:key
Check if a key was initialized in the Lucid node.
Path Parameters
key
string
Key of the data to check
Headers
Authorization
string
API authentification JSON Web Token
Execute a Specific Operation
PATCH
https://localhost:7021/api/kv/:key
Execute some operation like lock/unlock or other.
Path Parameters
key
string
Key of the data to operate
Headers
Authorization
string
API authentification JSON Web Token
Request Body
operation
string
Operation to perform (lock, unlock etc)
Last updated