Skip to content

Latest commit

 

History

History
25 lines (17 loc) · 663 Bytes

File metadata and controls

25 lines (17 loc) · 663 Bytes

Supabase Custom Notes API

🔧 Setup & Deploy Steps

  1. Create a Supabase project.
  2. Enable Edge Functions.
  3. Add your SUPABASE_URL and SUPABASE_ANON_KEY to the environment.
  4. Deploy functions:
    supabase functions deploy post_notes
    supabase functions deploy get_notes
    
    

Schema Design – Why?

  • uuid ensures unique, unguessable IDs.

  • user_id links each note to a user.

  • title is required; content optional.

  • created_at auto-tracks when the note is created.

🌐 API – One-line "Why?" Comments

  • POST /notes: used for creation; body includes note details.

  • GET /notes: fetches all notes for the user; no body needed.