{ "info": { "name": "English Learning App — Supabase", "_postman_id": "english-app-supabase", "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" }, "variable": [ { "key": "BASE_URL", "value": "https://eiyunmdvhwwtsqsyjotn.supabase.co", "type": "string" }, { "key": "ANON_KEY", "value": "PASTE_YOUR_ANON_KEY_HERE", "type": "string", "description": "Supabase Dashboard → Settings → API → anon public (eyJ...)" } ], "item": [ { "name": "REST API", "item": [ { "name": "GET questions (Part 2)", "request": { "method": "GET", "url": { "raw": "{{BASE_URL}}/rest/v1/questions?select=id,part,content,options,answer,explanation&part=eq.2&limit=3", "host": ["{{BASE_URL}}"], "path": ["rest", "v1", "questions"], "query": [ { "key": "select", "value": "id,part,content,options,answer,explanation" }, { "key": "part", "value": "eq.2" }, { "key": "limit", "value": "3" } ] }, "header": [ { "key": "apikey", "value": "{{ANON_KEY}}" }, { "key": "Authorization", "value": "Bearer {{ANON_KEY}}" } ] } }, { "name": "GET all questions", "request": { "method": "GET", "url": { "raw": "{{BASE_URL}}/rest/v1/questions?select=id,part,answer&order=part.asc", "host": ["{{BASE_URL}}"], "path": ["rest", "v1", "questions"], "query": [ { "key": "select", "value": "id,part,answer" }, { "key": "order", "value": "part.asc" } ] }, "header": [ { "key": "apikey", "value": "{{ANON_KEY}}" }, { "key": "Authorization", "value": "Bearer {{ANON_KEY}}" } ] } }, { "name": "GET vocab (Business topic)", "request": { "method": "GET", "url": { "raw": "{{BASE_URL}}/rest/v1/vocab?select=id,word,phonetic,meaning_vi,topic,example&topic=eq.Business", "host": ["{{BASE_URL}}"], "path": ["rest", "v1", "vocab"], "query": [ { "key": "select", "value": "id,word,phonetic,meaning_vi,topic,example" }, { "key": "topic", "value": "eq.Business" } ] }, "header": [ { "key": "apikey", "value": "{{ANON_KEY}}" }, { "key": "Authorization", "value": "Bearer {{ANON_KEY}}" } ] } }, { "name": "GET all vocab", "request": { "method": "GET", "url": { "raw": "{{BASE_URL}}/rest/v1/vocab?select=word,topic&order=topic.asc", "host": ["{{BASE_URL}}"], "path": ["rest", "v1", "vocab"], "query": [ { "key": "select", "value": "word,topic" }, { "key": "order", "value": "topic.asc" } ] }, "header": [ { "key": "apikey", "value": "{{ANON_KEY}}" }, { "key": "Authorization", "value": "Bearer {{ANON_KEY}}" } ] } } ] }, { "name": "Edge Functions", "item": [ { "name": "POST writing-check (short sentence)", "request": { "method": "POST", "url": { "raw": "{{BASE_URL}}/functions/v1/writing-check", "host": ["{{BASE_URL}}"], "path": ["functions", "v1", "writing-check"] }, "header": [ { "key": "Authorization", "value": "Bearer {{ANON_KEY}}" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"content\": \"The company have many employee who works very hard every days to achieve their goal.\"\n}" } } }, { "name": "POST writing-check (paragraph)", "request": { "method": "POST", "url": { "raw": "{{BASE_URL}}/functions/v1/writing-check", "host": ["{{BASE_URL}}"], "path": ["functions", "v1", "writing-check"] }, "header": [ { "key": "Authorization", "value": "Bearer {{ANON_KEY}}" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"content\": \"Dear Mr. Johnson, I am writing to inform you that our company will implement a new remote work policy starting from next month. All employees will be able to work from home for three days per week. This change is expect to improve work-life balance and increase productivity. However, some managers are concern about the impact on team collaboration. We will organize training session to help teams adapt to this new arrangement.\"\n}" } } }, { "name": "POST writing-check (too short — expect 400)", "request": { "method": "POST", "url": { "raw": "{{BASE_URL}}/functions/v1/writing-check", "host": ["{{BASE_URL}}"], "path": ["functions", "v1", "writing-check"] }, "header": [ { "key": "Authorization", "value": "Bearer {{ANON_KEY}}" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"content\": \"Hi\"\n}" } } } ] } ] }