Page History
| Table of Contents |
|---|
This page docuememts reflector's REST API.
The web server services requests on different threads than those that listen on TCP frames. As a result, some (minimal) amount of synchronization is required. All requests marked as GET either does not synchronize or at most grabs a read lock. Everything else (POST, PUT, DEL) requires scheduling and waiting. The goal is always to minimize the amount of work and synchronization required when servicing TCP frames.
All attempts to change configuration will be acknowledged with a reply with an HTTP status. It will have a ConfigFeedback categorization if actually serviced by the main thread. It may contain more details in the event of a rejection.
| HTTP Status | Source | Config Feedback | Description |
|---|---|---|---|
| 200 OK | main thread | SUCCESS | config change accepted and logged |
| 200 OK | both | IDEMPOTENT | config change accepted without change |
| 400 BAD REQUEST | web server | - | request malformed |
| 404 NOT FOUND | web server | - | entity not found |
| 405 METHOD NOT ALLOWED | web server | - | http method/action not allowed |
| 409 CONFLICT | main thread | REJECT | general reject (unused) |
| 409 CONFLICT | main thread | COLLISION | collision with existing name/value |
| 409 CONFLICT | main thread | NOT_FOUND | name/value not found |
| 409 CONFLICT | main thread | UNKNOWN_ACCOUNT | account lookup failed |
| 409 CONFLICT | main thread | TABLE_FULL | memory pool full |
| 409 CONFLICT | main thread | HASH_COLLISION | hash value collision |
| 409 CONFLICT | main thread | MALFORMED_NAME | malformed name/identifier |
| 409 CONFLICT | main thread | MALFORMED_PASS | malformed password |
| 409 CONFLICT | main thread | MALFORMED_DATE | malformed date |
| 409 CONFLICT | main thread | TYPE_MISMATCH | general category mismatch |
| 409 CONFLICT | main thread | SEQ_MISMATCH | sequence number mismatch |
| 409 CONFLICT | main thread | OUT_OF_RANGE | value/quantity out of range |
Control
There are two types of commands here: state queries and shutdown.
...