pcislocked/iett-middle — reverse-engineered prompt

Reverse engineered prompt

GitHub

Build me a Python FastAPI backend for Istanbul IETT bus data that works like a clean middle layer between messy IETT sources and apps that need simple JSON.

I want it to fetch live bus fleet locations, search stops and routes, show arrivals for a stop, show buses on a route, list route stops, schedules, announcements, and basic Istanbul traffic info. The outside APIs may be SOAP, HTML, or Mobiett JSON, but users of this service should only see simple REST endpoints with consistent fields.

Please add short in memory caching so repeated requests don’t hammer the source services, with sensible cache times for fleet, arrivals, traffic, schedules, and announcements. Include a health endpoint that shows uptime and cache stats, Swagger docs, environment based configuration, Docker support, and tests for the main behavior.

Keep it practical and production ready enough to run locally or in a container. Look up current docs online if you need to.

Want more depth? Deep Reverse