Ticket 4.1 – Request-/Response-Modelle mit Pydantic #10

Open
opened 2025-12-05 12:23:02 +01:00 by wMichael · 0 comments
Owner

Beschreibung:

In src/app/schemas.py Pydantic-Modelle definieren:
ShortenRequest mit Feld url: HttpUrl (oder str + eigene Validierung).
ShortenResponse mit Feld short_url: str.

Akzeptanzkriterien:

Ungültige URLs führen automatisch zu 422/400 Response.
Modelle werden in den Endpoints verwendet.

**Beschreibung:** In src/app/schemas.py Pydantic-Modelle definieren: ShortenRequest mit Feld url: HttpUrl (oder str + eigene Validierung). ShortenResponse mit Feld short_url: str. **Akzeptanzkriterien:** Ungültige URLs führen automatisch zu 422/400 Response. Modelle werden in den Endpoints verwendet.
wMichael added this to the Aufgaben project 2025-12-05 12:23:13 +01:00
AaronLaib moved this to Backlog in Aufgaben on 2025-12-05 12:26:21 +01:00
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: fastshortener/backend#10
No description provided.