72 lines
2.0 KiB
JSON
72 lines
2.0 KiB
JSON
{
|
|
"info": {
|
|
"name": "SIDAKDesa Attendance API",
|
|
"_postman_id": "12345678-abcd-efgh-ijkl-1234567890ab",
|
|
"description": "Koleksi API untuk menguji absensi SIDAKDesa",
|
|
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
|
|
},
|
|
"item": [
|
|
{
|
|
"name": "Get QR Token (session 1)",
|
|
"request": {
|
|
"method": "GET",
|
|
"url": {
|
|
"raw": "http://127.0.0.1:8000/api/attendance/sessions/1/qrcode",
|
|
"protocol": "http",
|
|
"host": ["127", "0", "0", "1"],
|
|
"port": "8000",
|
|
"path": ["api", "attendance", "sessions", "1", "qrcode"]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "Verify Attendance",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [{ "key": "Content-Type", "value": "application/json" }],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"token\": \"{{token}}\",\n \"user_id\": {{user_id}},\n \"device_info\": \"Chrome on Windows\"\n}"
|
|
},
|
|
"url": {
|
|
"raw": "http://127.0.0.1:8000/api/attendance/verify",
|
|
"protocol": "http",
|
|
"host": ["127", "0", "0", "1"],
|
|
"port": "8000",
|
|
"path": ["api", "attendance", "verify"]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "Today Attendance",
|
|
"request": {
|
|
"method": "GET",
|
|
"url": {
|
|
"raw": "http://127.0.0.1:8000/api/attendance/today",
|
|
"protocol": "http",
|
|
"host": ["127", "0", "0", "1"],
|
|
"port": "8000",
|
|
"path": ["api", "attendance", "today"]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "Force Rotate Token (session 1)",
|
|
"request": {
|
|
"method": "POST",
|
|
"url": {
|
|
"raw": "http://127.0.0.1:8000/api/attendance/sessions/1/rotate",
|
|
"protocol": "http",
|
|
"host": ["127", "0", "0", "1"],
|
|
"port": "8000",
|
|
"path": ["api", "attendance", "sessions", "1", "rotate"]
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"variable": [
|
|
{ "key": "token", "value": "" },
|
|
{ "key": "user_id", "value": "3" }
|
|
]
|
|
}
|