Update HTTP REST API
@@ -20,11 +20,11 @@ Example hash for the password `repertory`:
|
||||
55427d3dfdce97ef391db56aaf63a3726266777b46df1fa6dbc492093491e7605bd39cf6a88d6ccf4499b9d0de7f78c6
|
||||
```
|
||||
|
||||
This document reflects the API **exactly as implemented** in the server code shown (`server` and `full_server`).
|
||||
This document reflects the API **exactly as implemented** in the server code.
|
||||
|
||||
- **Bind Address:** `127.0.0.1`
|
||||
- **Base Path:** `/api/v1/`
|
||||
- **Auth:** HTTP Basic Auth on every request (checked by `rpc::check_authorization` before routing)
|
||||
- **Auth:** HTTP Basic Auth on every request
|
||||
- **Content-Type:** JSON for successful responses that include bodies; some endpoints return **no body** on success.
|
||||
- **Status Codes:**
|
||||
- `200 OK` on success
|
||||
@@ -32,7 +32,7 @@ This document reflects the API **exactly as implemented** in the server code sho
|
||||
- `404 Not Found` for some resource misses (e.g., pin/unpin when path not found)
|
||||
- `500 Internal Server Error` on unhandled exceptions (JSON body with `path` and `error` provided by exception handler)
|
||||
|
||||
> The server listens on `127.0.0.1:<API_PORT>`, where `<API_PORT>` comes from your runtime configuration (`config_.get_api_port()`).
|
||||
> The server listens on `127.0.0.1:<API_PORT>`, where `<API_PORT>` comes from your runtime configuration (`config.json`).
|
||||
|
||||
|
||||
---
|
||||
|
Reference in New Issue
Block a user