Add consumer alignment review kit

This commit is contained in:
tegwick 2026-05-23 07:23:48 +02:00
parent f562e2498d
commit 8e591132f8
38 changed files with 2244 additions and 83 deletions

View file

@ -9,6 +9,7 @@ from urllib.parse import parse_qs, urlparse
from .service import (
CanonServiceError,
alignment_template,
artifact_graph,
inspect_canon,
list_artifacts,
@ -19,6 +20,7 @@ from .service import (
profile_inspect,
profile_validate,
read_view,
review_kit,
validate_canon,
)
@ -84,6 +86,10 @@ def _route(
return HTTPStatus.OK, list_models(root)
if path == "/standards":
return HTTPStatus.OK, list_standards(root)
if path == "/review-kit":
return HTTPStatus.OK, review_kit(root)
if path == "/alignment-template":
return HTTPStatus.OK, alignment_template(root)
if path == "/validate":
payload = validate_canon(root)
return (HTTPStatus.OK if payload["ok"] else HTTPStatus.BAD_REQUEST), payload