feat(api): standardize REST contracts and auth

This commit is contained in:
2026-07-30 20:38:51 +08:00
parent ae1a657554
commit ba947b616b
86 changed files with 54193 additions and 990 deletions
+2 -2
View File
@@ -41,7 +41,7 @@ def test_agent_auth_context_returns_metadata_user_and_project_context():
),
)
response = client.get("/api/v1/agent/auth/context")
response = client.get("/api/v1/agent-auth-context")
assert response.status_code == 200
assert response.json() == {
@@ -90,7 +90,7 @@ def test_agent_auth_context_propagates_project_auth_failures():
app.dependency_overrides[get_current_keycloak_payload] = lambda: {"exp": 1781183400}
client = TestClient(app)
response = client.get("/api/v1/agent/auth/context")
response = client.get("/api/v1/agent-auth-context")
assert response.status_code == 403
assert response.json()["detail"] == "No access to project"