Abgabe
This commit is contained in:
parent
fefed588b4
commit
5a0e2ed6c3
@ -10,7 +10,6 @@ Order Management System - Systemdesign und Entscheidungen
|
|||||||
- **Validierung**: Zod für Runtime-Checks
|
- **Validierung**: Zod für Runtime-Checks
|
||||||
- **API-Endpunkte**:
|
- **API-Endpunkte**:
|
||||||
- `POST /orders` - Neue Bestellung erstellen
|
- `POST /orders` - Neue Bestellung erstellen
|
||||||
- `GET /health` - Health Check
|
|
||||||
|
|
||||||
### 2. Datenhaltung
|
### 2. Datenhaltung
|
||||||
- **Datenbank**: SQLite3
|
- **Datenbank**: SQLite3
|
||||||
@ -87,7 +86,7 @@ Zwei Container:
|
|||||||
|
|
||||||
## Fehlerhandling
|
## Fehlerhandling
|
||||||
|
|
||||||
### API-Level
|
### API-Level
|
||||||
```typescript
|
```typescript
|
||||||
try {
|
try {
|
||||||
// validation
|
// validation
|
||||||
@ -102,8 +101,6 @@ try {
|
|||||||
|
|
||||||
### DB-Level
|
### DB-Level
|
||||||
- Promises mit try/catch
|
- Promises mit try/catch
|
||||||
- Graceful degradation
|
|
||||||
- Transaction Support (für später)
|
|
||||||
|
|
||||||
### Frontend
|
### Frontend
|
||||||
- Axios error handling
|
- Axios error handling
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user