isitfake / BackEnd /IsItFake_API.postman_collection.json
Jennigwen's picture
Update : Git Ignore .env
c25c614
Raw
History Blame Contribute Delete
5.29 kB
{
"info": {
"name": "IsItFake? Deepfake Detector API",
"description": "Koleksi API lengkap untuk aplikasi pendeteksi deepfake IsItFake?",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"variable": [
{
"key": "base_url",
"value": "http://127.0.0.1:5000",
"type": "string"
},
{
"key": "jwt_token",
"value": "PASTE_TOKEN_KAMU_DI_SINI_SETELAH_LOGIN",
"type": "string"
}
],
"item": [
{
"name": "1. System",
"item": [
{
"name": "Test Database Connection",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{base_url}}/api/test-db",
"host": [
"{{base_url}}"
],
"path": [
"api",
"test-db"
]
}
},
"response": []
}
]
},
{
"name": "2. Authentication",
"item": [
{
"name": "Register",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"email\": \"tester@mail.com\",\n \"username\": \"tester_ai\",\n \"password\": \"password123\",\n \"display_name\": \"Si Paling Tester\"\n}"
},
"url": {
"raw": "{{base_url}}/api/register",
"host": [
"{{base_url}}"
],
"path": [
"api",
"register"
]
}
},
"response": []
},
{
"name": "Login",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"email\": \"tester@mail.com\",\n \"password\": \"password123\"\n}"
},
"url": {
"raw": "{{base_url}}/api/login",
"host": [
"{{base_url}}"
],
"path": [
"api",
"login"
]
},
"description": "Setelah login berhasil, copy `access_token` dari response dan masukkan ke tab Variables di folder utama collection (jwt_token)."
},
"response": []
},
{
"name": "Logout",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{jwt_token}}",
"type": "string"
}
]
},
"method": "POST",
"header": [],
"url": {
"raw": "{{base_url}}/api/logout",
"host": [
"{{base_url}}"
],
"path": [
"api",
"logout"
]
}
},
"response": []
},
{
"name": "Get Profile",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{jwt_token}}",
"type": "string"
}
]
},
"method": "GET",
"header": [],
"url": {
"raw": "{{base_url}}/api/profile",
"host": [
"{{base_url}}"
],
"path": [
"api",
"profile"
]
}
},
"response": []
}
]
},
{
"name": "3. Analysis",
"item": [
{
"name": "Scan Image (Deepfake Detection)",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{jwt_token}}",
"type": "string"
}
]
},
"method": "POST",
"header": [],
"body": {
"mode": "formdata",
"formdata": [
{
"key": "file",
"type": "file",
"src": []
}
]
},
"url": {
"raw": "{{base_url}}/api/scan",
"host": [
"{{base_url}}"
],
"path": [
"api",
"scan"
]
},
"description": "Ingat: Jika kamu tidak ingin menyimpan riwayat (mode Guest), matikan centang 'Authorization' di tab Auth."
},
"response": []
}
]
},
{
"name": "4. Statistics",
"item": [
{
"name": "Get Dashboard Summary",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{jwt_token}}",
"type": "string"
}
]
},
"method": "GET",
"header": [],
"url": {
"raw": "{{base_url}}/api/statistics/summary",
"host": [
"{{base_url}}"
],
"path": [
"api",
"statistics",
"summary"
]
}
},
"response": []
},
{
"name": "Get Scan History (Pagination)",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{jwt_token}}",
"type": "string"
}
]
},
"method": "GET",
"header": [],
"url": {
"raw": "{{base_url}}/api/statistics/history?page=1&limit=5",
"host": [
"{{base_url}}"
],
"path": [
"api",
"statistics",
"history"
],
"query": [
{
"key": "page",
"value": "1"
},
{
"key": "limit",
"value": "5"
}
]
}
},
"response": []
}
]
}
]
}