PhisDet / phisfence_postman_collection.json
RantoG's picture
Upload 18 files
96b6f71 verified
{
"info": {
"_postman_id": "phisfence-api-collection",
"name": "PhisFence API Testing",
"description": "Collection untuk testing endpoint backend PhisFence",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "General",
"item": [
{
"name": "Check Health (Root)",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://127.0.0.1:8000/",
"protocol": "http",
"host": [
"127",
"0",
"0",
"1"
],
"port": "8000",
"path": [
""
]
}
},
"response": []
},
{
"name": "Get Statistics",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://127.0.0.1:8000/stats",
"protocol": "http",
"host": [
"127",
"0",
"0",
"1"
],
"port": "8000",
"path": [
"stats"
]
}
},
"response": []
}
]
},
{
"name": "Prediction",
"item": [
{
"name": "Predict dari URL (Main)",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"url\": \"http://google.com\"\n}"
},
"url": {
"raw": "http://127.0.0.1:8000/predict_url",
"protocol": "http",
"host": [
"127",
"0",
"0",
"1"
],
"port": "8000",
"path": [
"predict_url"
]
}
},
"response": []
},
{
"name": "Predict from URL (Contoh Phising)",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"url\": \"http://secure-login-apple-id.com.verify.account.update.info.cgi-bin.login.cmd.login.submit.login.asp.login.php.login.jsp.login.htm.login.html\"\n}"
},
"url": {
"raw": "http://127.0.0.1:8000/predict_url",
"protocol": "http",
"host": [
"127",
"0",
"0",
"1"
],
"port": "8000",
"path": [
"predict_url"
]
}
},
"response": []
},
{
"name": "Predict Raw Features (dari extract feature)",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"URLLength\": 25,\n \"DomainLength\": 10,\n \"TLDLength\": 3,\n \"NoOfImage\": 5,\n \"NoOfJS\": 2,\n \"NoOfCSS\": 1,\n \"NoOfSelfRef\": 0,\n \"NoOfExternalRef\": 1,\n \"IsHTTPS\": 1,\n \"HasObfuscation\": 0,\n \"HasTitle\": 1,\n \"HasDescription\": 0,\n \"HasSubmitButton\": 0,\n \"HasSocialNet\": 0,\n \"HasFavicon\": 1,\n \"HasCopyrightInfo\": 1,\n \"popUpWindow\": 0,\n \"Iframe\": 0,\n \"Abnormal_URL\": 0,\n \"LetterToDigitRatio\": 0.8,\n \"Redirect_0\": 0,\n \"Redirect_1\": 0\n}"
},
"url": {
"raw": "http://127.0.0.1:8000/predict",
"protocol": "http",
"host": [
"127",
"0",
"0",
"1"
],
"port": "8000",
"path": [
"predict"
]
}
},
"response": []
}
]
},
{
"name": "History",
"item": [
{
"name": "Get Recent Scan History",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://127.0.0.1:8000/history",
"protocol": "http",
"host": [
"127",
"0",
"0",
"1"
],
"port": "8000",
"path": [
"history"
]
}
},
"response": []
},
{
"name": "Clear History",
"request": {
"method": "DELETE",
"header": [],
"url": {
"raw": "http://127.0.0.1:8000/history",
"protocol": "http",
"host": [
"127",
"0",
"0",
"1"
],
"port": "8000",
"path": [
"history"
]
}
},
"response": []
}
]
}
]
}