feat: establish lab1 HTTP contract skeleton

This commit is contained in:
Самохвалов Андрей Ремович
2026-10-01 21:17:35 +03:00
parent 0d572b8fcf
commit 666a37c136
5 changed files with 231 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
"""HTTP routes; domain operations are added in subsequent units."""
from fastapi import APIRouter
from .models import CreateUser
router = APIRouter()
@router.get("/health/live")
def live():
return {"status": "ok"}
@router.get("/health/ready")
def ready():
return {"status": "ok"}
@router.post("/api/v1/users", status_code=201)
def register_user(body: CreateUser):
raise NotImplementedError("User registration is implemented in U2")