Expand description
HTTP API server.
REST API built with axum, bound to 127.0.0.1 (configurable port):
POST /search— Search code with various modesPOST /index— Trigger index build for a projectGET /status— Query index status for a project
Structs§
- AppState
- Shared application state for HTTP handlers.
- Error
Response - API error response.
- Index
Request - Request body for
POST /index. - Index
Response - Response for
POST /index. - Search
Request - Request body for
POST /search. - Status
Query - Request params for
GET /status. - Status
Response - Response for
GET /status.
Functions§
- start_
http_ server - Start the HTTP API server.