Mock Tenant API (SalesMate)

Avvio rapido:
  unzip mock_tenant.zip
  cd mock_tenant

  python3 -m venv .venv
  . .venv/bin/activate

  pip install fastapi uvicorn
  uvicorn app:app --host 0.0.0.0 --port 8898

Credenziali:
  Username:    ck_mock_123
  Password:    cs_mock_123
  Customer ID:     123

Base URL:
  api_base_url:   http://localhost:8898/api/v1
  store_base_url: http://localhost:8898/store/v1
  ext_base_url:   http://localhost:8898/ext/v1

Note:
  I dati fittizi sono in fixtures.json.
  Il mock legge fixtures.json ad ogni richiesta: in genere basta salvare il file e riprovare (senza riavviare).

Struttura fixtures.json:
  - auth.username / auth.password: credenziali Basic Auth attese
  - customers: lista clienti (usa id=123 per i test rapidi)
  - categories: lista categorie prodotto
  - products: lista prodotti
  - variations: oggetto indicizzato per product_id (stringa) -> lista varianti
  - orders: lista ordini (customer_id deve matchare il cliente)

Se cambi auth.*, aggiorna anche le credenziali usate da Swagger (Authorize) e dal Tenant API Sandbox.
