Basic Configuration
Add an HTTP server to expose your database via REST API:API Endpoints
The HTTP server provides two main endpoints:- Execute endpoint:
POST /<base_path>/execute- Execute DQL queries - Health check:
GET /<base_path>- Simple health status
Security Considerations
To facilitate use inside docker containers, the HTTP server allows users to bind to ANY listen address (e.g.,0.0.0.0 or [::]). There are currently no security restrictions on this feature
nor does the Edge Server implement any authentication or authorization for the HTTP API,
so use caution when exposing the HTTP server to external networks.
Using the API
Query Examples
Execute a SELECT query:Docker Networking
When using Docker, ensure proper port mapping:Best Practices
- Use unique ports: Each HTTP server must bind to a different port
- Limit API access: Only enable the execute endpoint if needed
- Monitor health: Use the health check endpoint for monitoring
- Secure production: Always use a reverse proxy with authentication for external access
- Match database IDs: Ensure the
db_idexactly matches your DittoDatabase resource