Created
January 15, 2026 16:16
-
-
Save philwinder/11e4c4f7ea48b1c05b7cedea49367f1a to your computer and use it in GitHub Desktop.
A ridiculously simple orders microservice for test purposes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from http.server import BaseHTTPServer | |
| import json | |
| orders = [{"id": 1, "amount": 99.99}, {"id": 2, "amount": 49.50}] | |
| class Handler(BaseHTTPServer.BaseHTTPRequestHandler): | |
| def do_GET(self): | |
| self.send_response(200) | |
| self.end_headers() | |
| self.wfile.write(json.dumps(orders).encode()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment