forked from RiseUP/riseup_squad_03
fix(api): simplifica consultas de agendamentos e medicos
This commit is contained in:
13
test4.mjs
Normal file
13
test4.mjs
Normal file
@@ -0,0 +1,13 @@
|
||||
const url = "https://yuanqfswhberkoevtmfr.supabase.co/rest/v1/";
|
||||
const key = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6Inl1YW5xZnN3aGJlcmtvZXZ0bWZyIiwicm9sZSI6ImFub24iLCJpYXQiOjE3NTQ5NTQzNjksImV4cCI6MjA3MDUzMDM2OX0.g8Fm4XAvtX46zifBZnYVH4tVuQkqUH6Ia9CXQj4DztQ";
|
||||
|
||||
async function test() {
|
||||
const res = await fetch(url, { headers: { apikey: key }});
|
||||
const json = await res.json();
|
||||
|
||||
console.log("Doctors columns:", Object.keys(json.definitions.doctors.properties));
|
||||
console.log("Patients columns:", Object.keys(json.definitions.patients.properties));
|
||||
console.log("Appointments columns:", Object.keys(json.definitions.appointments.properties));
|
||||
}
|
||||
|
||||
test().catch(console.error);
|
||||
Reference in New Issue
Block a user