{ "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 (Admin)", "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 \"announcement_time\": \"02:30:00\"\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": "Update Result (Admin)", "request": { "method": "PUT", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Bearer " } ], "body": { "mode": "raw", "raw": "{\n \"team\": \"UPDATED TEAM\",\n \"date\": \"2025-03-12\",\n \"result\": \"55\",\n \"announcement_time\": \"03:00:00\"\n}" }, "url": { "raw": "http://localhost:3000/admin/results/1", "protocol": "http", "host": ["localhost"], "port": "3000", "path": ["admin", "results", "1"] } } }, { "name": "Delete Result (Admin)", "request": { "method": "DELETE", "header": [ { "key": "Authorization", "value": "Bearer " } ], "url": { "raw": "http://localhost:3000/admin/results/1", "protocol": "http", "host": ["localhost"], "port": "3000", "path": ["admin", "results", "1"] } } }, { "name": "Get Results By Team (Admin)", "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Bearer " } ], "url": { "raw": "http://localhost:3000/admin/results?team=BIKANER SUPER", "protocol": "http", "host": ["localhost"], "port": "3000", "path": ["admin", "results"], "query": [ { "key": "team", "value": "BIKANER SUPER" } ] } } }, { "name": "Create Team (Admin)", "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Bearer " } ], "body": { "mode": "raw", "raw": "{\n \"name\": \"NEW TEAM\"\n}" }, "url": { "raw": "http://localhost:3000/admin/teams", "protocol": "http", "host": ["localhost"], "port": "3000", "path": ["admin", "teams"] } } }, { "name": "Update Team (Admin)", "request": { "method": "PUT", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Bearer " } ], "body": { "mode": "raw", "raw": "{\n \"name\": \"UPDATED TEAM\"\n}" }, "url": { "raw": "http://localhost:3000/admin/teams/1", "protocol": "http", "host": ["localhost"], "port": "3000", "path": ["admin", "teams", "1"] } } }, { "name": "Delete Team (Admin)", "request": { "method": "DELETE", "header": [ { "key": "Authorization", "value": "Bearer " } ], "url": { "raw": "http://localhost:3000/admin/teams/1", "protocol": "http", "host": ["localhost"], "port": "3000", "path": ["admin", "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": "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" } ] } } }, { "name": "Publish Result Validation Example", "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Bearer " } ], "body": { "mode": "raw", "raw": "{\n \"team\": \"INVALID@TEAM\",\n \"date\": \"2025-03-12\",\n \"result\": \"INVALID_RESULT\",\n \"announcement_time\": \"INVALID_TIME\"\n}" }, "url": { "raw": "http://localhost:3000/admin/results", "protocol": "http", "host": ["localhost"], "port": "3000", "path": ["admin", "results"] } } } ] }