docs: add OpenAPI-first wiki (overview, components, use cases for templates/client/codegen, design, security, error handling, testing) and refresh lib docs index

This commit is contained in:
2026-09-15 22:29:05 +05:30
parent adeb02e162
commit b559323dfe
26 changed files with 1590 additions and 86 deletions

View File

@@ -62,6 +62,8 @@ def get_item(item_id: int) -> Item:
KeyError
If the item does not exist.
"""
if item_id not in _items:
raise KeyError(item_id)
return _items[item_id]
@@ -134,4 +136,6 @@ def delete_item(item_id: int) -> None:
KeyError
If the item does not exist.
"""
if item_id not in _items:
raise KeyError(item_id)
del _items[item_id]