Echo API
Tiny FastAPI service that echoes a JSON payload back.
snap/examples-smoke-echo:latest
Stack
pythonfastapi
Real-world use
Smoke test for the examples pipeline.
Portfolio value
Demonstrates the simplest possible HTTP service shape.
Builds on lessons
Lesson 1
Build plan
- Scaffold FastAPI + pytest
- Implement /health and /echo
- Verify with pytest + docker compose smoke
What you'll observe
GET /health returns {"status":"ok"}
POST /echo returns the supplied body unchanged
Lift this to your work
Drop the FastAPI scaffold into your team's services repo as a starter for new HTTP endpoints.
Echo API
Tiny FastAPI service that echoes a JSON payload back.
snap/examples-smoke-echo:latest
Stack
pythonfastapi
Real-world use
Smoke test for the examples pipeline.
Portfolio value
Demonstrates the simplest possible HTTP service shape.
Builds on lessons
Lesson 1
Build plan
- Scaffold FastAPI + pytest
- Implement /health and /echo
- Verify with pytest + docker compose smoke
What you'll observe
GET /health returns {"status":"ok"}
POST /echo returns the supplied body unchanged
Lift this to your work
Drop the FastAPI scaffold into your team's services repo as a starter for new HTTP endpoints.