86-row call table checked against Google discovery documents, typed services, local approval ledger, live read-only tests, /agent/registry demo. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
13 lines
473 B
C++
13 lines
473 B
C++
// Route: POST /agent/registry/deprecate
|
|
#include "agent/registry/cases.hpp"
|
|
|
|
using namespace molo::example::test;
|
|
|
|
int main() {
|
|
check_google_post_route("/agent/registry/deprecate",
|
|
"{\"name\":\"projects/test-project/locations/us-central1/agents/a1\",\"actor\":\"alice\"}",
|
|
"{\"name\":\"projects/test-project/locations/us-central1/agents/a1\",\"actor\":\"a\",\"replaced_by\":\"bad\"}",
|
|
"bad replaced_by");
|
|
return finish("agent/registry/deprecate");
|
|
}
|