{ "info": { "_postman_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890", "name": "Kings Backend API", "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" }, "item": [ { "name": "Admin Login", "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"accessKey\": \"\",\n \"password\": \"\"\n}" }, "url": { "raw": "http://localhost:3000/admin/login", "protocol": "http", "host": ["localhost"], "port": "3000", "path": ["admin", "login"] } } }, { "name": "Publish Result", "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Bearer " } ], "body": { "mode": "raw", "raw": "{\n \"team\": \"BIKANER SUPER\",\n \"date\": \"2025-03-12\",\n \"result\": \"45\"\n}" }, "url": { "raw": "http://localhost:3000/admin/results", "protocol": "http", "host": ["localhost"], "port": "3000", "path": ["admin", "results"] } } }, { "name": "Get All Teams", "request": { "method": "GET", "header": [], "url": { "raw": "http://localhost:3000/api/teams", "protocol": "http", "host": ["localhost"], "port": "3000", "path": ["api", "teams"] } } }, { "name": "Create Team", "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"name\": \"NEW TEAM\",\n \"announcement_time\": \"02:30:00\"\n}" }, "url": { "raw": "http://localhost:3000/api/teams", "protocol": "http", "host": ["localhost"], "port": "3000", "path": ["api", "teams"] } } }, { "name": "Update Team", "request": { "method": "PUT", "header": [ { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"name\": \"UPDATED TEAM\",\n \"announcement_time\": \"03:00:00\"\n}" }, "url": { "raw": "http://localhost:3000/api/teams/1", "protocol": "http", "host": ["localhost"], "port": "3000", "path": ["api", "teams", "1"] } } }, { "name": "Delete Team", "request": { "method": "DELETE", "header": [], "url": { "raw": "http://localhost:3000/api/teams/1", "protocol": "http", "host": ["localhost"], "port": "3000", "path": ["api", "teams", "1"] } } }, { "name": "Get Today's Results", "request": { "method": "GET", "header": [], "url": { "raw": "http://localhost:3000/api/today", "protocol": "http", "host": ["localhost"], "port": "3000", "path": ["api", "today"] } } }, { "name": "Health Check", "request": { "method": "GET", "header": [], "url": { "raw": "http://localhost:3000/api/health", "protocol": "http", "host": ["localhost"], "port": "3000", "path": ["api", "health"] } } }, { "name": "Test Sanitization", "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"name\": \"\",\n \"announcement_time\": \"02:30:00\"\n}" }, "url": { "raw": "http://localhost:3000/api/teams", "protocol": "http", "host": [ "localhost" ], "port": "3000", "path": [ "api", "teams" ] } } }, { "name": "Get Monthly Results", "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"team\": \"BIKANER SUPER\",\n \"month\": \"2025-03\"\n}" }, "url": { "raw": "http://localhost:3000/api/results/monthly", "protocol": "http", "host": ["localhost"], "port": "3000", "path": ["api", "results", "monthly"] } } }, { "name": "Get Daily Results", "request": { "method": "GET", "header": [], "url": { "raw": "http://localhost:3000/api/results/daily?date=2025-03-12", "protocol": "http", "host": ["localhost"], "port": "3000", "path": ["api", "results", "daily"], "query": [ { "key": "date", "value": "2025-03-12" } ] } } } ] }