Assignments & final project
Harden and ship.
Practice
- Build a JSON endpoint and add a validation schema; confirm bad input returns 400.
- Issue a pro API key and gate the endpoint with @app.api_key_required(plan="pro").
- Add @app.metered("$0.01/call") and prove a key runs out with a clean 402.
- Sell a credit pack and top a key up from the /larz/credits page.
- Turn on /docs and version the API behind /api/v1 with a Blueprint.
Final project
Ship a real paid API: at least one metered endpoint with validation, API keys on a plan, credit packs, OpenAPI docs, and a checkout wired to a (test-mode) provider. Share the URL.