API Documentation

This frontend is powered by Supabase tables. You can expose the same data via Supabase REST endpoints or PostgREST-compatible routes.

Suggested Endpoints

  • /rest/v1/countries?select=*
    Full country list
  • /rest/v1/countries?alpha2=eq.US
    Country by alpha-2 code
  • /rest/v1/calling_codes?calling_code=eq.%2B1
    Countries by calling code
  • /rest/v1/currencies?currency_code=eq.USD
    Currency detail
For production API docs, consider adding typed schemas, rate limits, and example payloads. You can also document your Supabase REST endpoints alongside these frontend routes.