curl -X POST https://rzqklwfhwqmviintncqh.supabase.co/functions/v1/notes-create \ -H "Authorization: Bearer your_access_token" \ -H "Content-Type: application/json" \ -d '{ "title": "My First Note", "content": "This is my first note created via the API!", "status": "DRAFT" }'
const response = await fetch('https://rzqklwfhwqmviintncqh.supabase.co/functions/v1/notes-create', { method: 'POST', headers: { 'Authorization': `Bearer ${accessToken}`, 'Content-Type': 'application/json' }, body: JSON.stringify({ title: 'My First Note', content: 'This is my first note created via the API!', status: 'DRAFT' })});const note = await response.json();
final response = await http.post( Uri.parse('https://rzqklwfhwqmviintncqh.supabase.co/functions/v1/notes-create'), headers: { 'Authorization': 'Bearer $accessToken', 'Content-Type': 'application/json', }, body: jsonEncode({ 'title': 'My First Note', 'content': 'This is my first note created via the API!', 'status': 'DRAFT', }),);final note = jsonDecode(response.body);