feat: establish lab1 HTTP contract skeleton
This commit is contained in:
+22
@@ -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")
|
||||
Reference in New Issue
Block a user