@mdxdb/api
HTTP API client adapter
@mdxdb/api
Connect to a remote mdxdb server via HTTP.
Installation
Usage
Configuration
API Endpoints
The client expects these endpoints:
| Method | Endpoint | Description |
|---|---|---|
| GET | /documents/:path | Get document |
| PUT | /documents/:path | Create/update document |
| DELETE | /documents/:path | Delete document |
| GET | /documents | List documents |
| GET | /search | Search documents |
Examples
Basic Usage
Custom Headers
Error Handling
Server Implementation
Example server using Hono: