Skip to content

Acceso a API Supabase

Cristopher edited this page May 28, 2022 · 1 revision

Read all rows

curl 'https://oymdiutldfewjvmpkgam.supabase.co/rest/v1/available_bikes?select=*'
-H "apikey: SUPABASE_KEY"
-H "Authorization: Bearer SUPABASE_KEY"

Read specific columns

curl 'https://oymdiutldfewjvmpkgam.supabase.co/rest/v1/available_bikes?select=some_column,other_column'
-H "apikey: SUPABASE_KEY"
-H "Authorization: Bearer SUPABASE_KEY"

Read foreign tables

curl 'https://oymdiutldfewjvmpkgam.supabase.co/rest/v1/available_bikes?select=some_column,other_table(foreign_key)'
-H "apikey: SUPABASE_KEY"
-H "Authorization: Bearer SUPABASE_KEY"

With pagination

curl 'https://oymdiutldfewjvmpkgam.supabase.co/rest/v1/available_bikes?select=*'
-H "apikey: SUPABASE_KEY"
-H "Authorization: Bearer SUPABASE_KEY"
-H "Range: 0-9"

Clone this wiki locally