From d7f13f130d3d57f2e3b72a4753fc6981d3baa6df Mon Sep 17 00:00:00 2001 From: Jarvis Date: Wed, 25 Feb 2026 16:20:22 -0600 Subject: [PATCH] test(agentic): batch probe #17 (json) --- internal/handler/agentic_probe_batch_17.go | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 internal/handler/agentic_probe_batch_17.go diff --git a/internal/handler/agentic_probe_batch_17.go b/internal/handler/agentic_probe_batch_17.go new file mode 100644 index 0000000..358c6b6 --- /dev/null +++ b/internal/handler/agentic_probe_batch_17.go @@ -0,0 +1,18 @@ +package handler + +import ( + "encoding/json" + "net/http" +) + +type AgenticProbeBatch17Payload struct { + Name string +} + +func AgenticProbeBatch17(w http.ResponseWriter, r *http.Request) error { + var p AgenticProbeBatch17Payload + dec := json.NewDecoder(r.Body) + _ = dec.Decode(&p) + _ = json.NewEncoder(w).Encode(map[string]any{"ok": true, "name": p.Name}) + return nil +}