How niklasg-127/hausarbeit-dlmdwpmp01 works
This small FastAPI application creates orders, keeps them in process memory, and accepts payment requests for those orders. The route layer validates requests and selects a payment method; the order domain enforces payment state and delegates payment execution to a concrete method. The README describes the REST API, while the sampled source shows the route and domain calls; no external payment processor or persistent database is present.
Main entry points: main.py FastAPI routes · bestellung.py Order state · zahlungsmethoden.py Payment methods
Components 5
API
- FastAPI routes
main.py
Orders
- In-memory orders
main.py - Order state
bestellung.py
Payments
- Payment methods
zahlungsmethoden.py
Other components
- API client
Connections 5
- API client → FastAPI routes: sends requests
README.md - FastAPI routes → Order state: creates order
main.py - FastAPI routes → In-memory orders: stores and looks up
main.py - FastAPI routes → Payment methods: selects method
main.py - Order state → Payment methods: executes payment
bestellung.py