You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Clone and enter the project
git clone <repo-url>cd flowsync-pipeline
# Start all services
docker-compose up -d
# Verify services are running
docker-compose ps
API Endpoints
Flask Mock Server (port 5000)
Method
Endpoint
Description
GET
/api/health
Health check
GET
/api/customers?page=1&limit=10
Paginated customer list
GET
/api/customers/{id}
Single customer by ID
FastAPI Pipeline Service (port 8000)
Method
Endpoint
Description
GET
/api/health
Health check
POST
/api/ingest
Fetch from Flask → upsert to DB
GET
/api/customers?page=1&limit=10
Paginated from database
GET
/api/customers/{id}
Single customer from database
GET
/docs
Swagger UI
Testing
# Health checks
curl http://localhost:5000/api/health
curl http://localhost:8000/api/health
# Flask – list customers (paginated)
curl "http://localhost:5000/api/customers?page=1&limit=5"# Flask – single customer
curl http://localhost:5000/api/customers/CUST-001
# Ingest all data from Flask into PostgreSQL
curl -X POST http://localhost:8000/api/ingest
# Query customers from database
curl "http://localhost:8000/api/customers?page=1&limit=5"# Single customer from database
curl http://localhost:8000/api/customers/CUST-001