bazar3/server/postman_collection.json
Naveen Kumar c1433aa070 1
2025-03-17 20:40:48 +05:30

162 lines
3.9 KiB
JSON

{
"info": {
"_postman_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"name": "Satta 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\": \"<ACCESS_KEY>\",\n \"password\": \"<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 <SESSION_TOKEN>"
}
],
"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"]
}
}
}
]
}