Skip to content

Instantly share code, notes, and snippets.

@philwinder
Created January 15, 2026 16:16
Show Gist options
  • Select an option

  • Save philwinder/11e4c4f7ea48b1c05b7cedea49367f1a to your computer and use it in GitHub Desktop.

Select an option

Save philwinder/11e4c4f7ea48b1c05b7cedea49367f1a to your computer and use it in GitHub Desktop.
A ridiculously simple orders microservice for test purposes
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