- DELETE /api/v1/screens/{screenId}/status loescht einzelne Screen-Eintraege
- /api/v1/meta listet jetzt 5 Tools inkl. screen-status-delete und diagnostic_ui-Pfade
- filePlayerStatusStore persistiert den Status-Store atomar in einer JSON-Datei
- MORZ_INFOBOARD_STATUS_STORE_PATH aktiviert die Datei-Persistenz (leer = In-Memory)
- Integration-Test deckt den vollstaendigen Lifecycle: POST -> list -> HTML -> JSON -> DELETE -> 404 ab
- DEVELOPMENT.md beschreibt End-to-End-Entwicklungstest und neue Env-Variable
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
45 lines
1.1 KiB
Go
45 lines
1.1 KiB
Go
package httpapi
|
|
|
|
import "net/http"
|
|
|
|
func handleMeta(w http.ResponseWriter, _ *http.Request) {
|
|
writeJSON(w, http.StatusOK, map[string]any{
|
|
"service": "morz-infoboard-backend",
|
|
"version": "dev",
|
|
"api": map[string]any{
|
|
"base_path": "/api/v1",
|
|
"health": "/healthz",
|
|
"tools": []map[string]string{
|
|
{
|
|
"name": "message-wall-resolve",
|
|
"method": http.MethodPost,
|
|
"path": "/api/v1/tools/message-wall/resolve",
|
|
},
|
|
{
|
|
"name": "screen-status-list",
|
|
"method": http.MethodGet,
|
|
"path": "/api/v1/screens/status",
|
|
},
|
|
{
|
|
"name": "screen-status-detail",
|
|
"method": http.MethodGet,
|
|
"path": "/api/v1/screens/{screenId}/status",
|
|
},
|
|
{
|
|
"name": "player-status-ingest",
|
|
"method": http.MethodPost,
|
|
"path": "/api/v1/player/status",
|
|
},
|
|
{
|
|
"name": "screen-status-delete",
|
|
"method": http.MethodDelete,
|
|
"path": "/api/v1/screens/{screenId}/status",
|
|
},
|
|
},
|
|
"diagnostic_ui": map[string]string{
|
|
"screen_list": "/status",
|
|
"screen_detail": "/status/{screenId}",
|
|
},
|
|
},
|
|
})
|
|
}
|