Add consumer alignment review kit
This commit is contained in:
parent
f562e2498d
commit
8e591132f8
38 changed files with 2244 additions and 83 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue