Harden registry API and schema validation
This commit is contained in:
parent
5c20f62fbb
commit
bc73b05566
9 changed files with 232 additions and 30 deletions
|
|
@ -39,6 +39,8 @@ class RegistryHandler(BaseHTTPRequestHandler):
|
|||
parts = _parts(path)
|
||||
if path == "/health":
|
||||
return HTTPStatus.OK, {"status": "ok"}
|
||||
if path == "/status":
|
||||
return HTTPStatus.OK, self.store.status()
|
||||
if parts == ["repositories"]:
|
||||
return HTTPStatus.OK, self.store.list_repositories()
|
||||
if len(parts) == 3 and parts[0] == "repositories" and parts[2] == "inventory":
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue