Files
netstar-categorizer/test-detailed.http
2026-04-23 17:41:18 -03:00

189 lines
3.1 KiB
HTTP

@baseUrl = http://localhost:3333
# ============================================
# POST / - Basic Categorization Endpoint
# Returns: Simple result array of category IDs
# ============================================
### Basic endpoint - Facebook
POST {{baseUrl}}/
Content-Type: application/json
{
"fqdn": "facebook.com"
}
### Basic endpoint - Google
POST {{baseUrl}}/
Content-Type: application/json
{
"fqdn": "google.com"
}
### Basic endpoint - TikTok
POST {{baseUrl}}/
Content-Type: application/json
{
"fqdn": "tiktok.com"
}
### Basic endpoint - YouTube
POST {{baseUrl}}/
Content-Type: application/json
{
"fqdn": "youtube.com"
}
### Basic endpoint - Reddit
POST {{baseUrl}}/
Content-Type: application/json
{
"fqdn": "reddit.com"
}
### Basic endpoint - Twitter
POST {{baseUrl}}/
Content-Type: application/json
{
"fqdn": "twitter.com"
}
# ============================================
# POST /detailed - Detailed Categorization
# Returns: Categories with names, reputation, age rating
# ============================================
### Detailed endpoint - Facebook
POST {{baseUrl}}/detailed
Content-Type: application/json
{
"fqdn": "facebook.com"
}
### Detailed endpoint - Google
POST {{baseUrl}}/detailed
Content-Type: application/json
{
"fqdn": "google.com"
}
### Detailed endpoint - TikTok
POST {{baseUrl}}/detailed
Content-Type: application/json
{
"fqdn": "tiktok.com"
}
### Detailed endpoint - YouTube
POST {{baseUrl}}/detailed
Content-Type: application/json
{
"fqdn": "youtube.com"
}
### Detailed endpoint - Reddit
POST {{baseUrl}}/detailed
Content-Type: application/json
{
"fqdn": "reddit.com"
}
### Detailed endpoint - Twitter
POST {{baseUrl}}/detailed
Content-Type: application/json
{
"fqdn": "twitter.com"
}
# ============================================
# POST /full - Complete Raw Output
# Returns: All 35 fields from NetStar with category groups
# ============================================
### Full endpoint - Facebook
POST {{baseUrl}}/full
Content-Type: application/json
{
"fqdn": "facebook.com"
}
### Full endpoint - Google
POST {{baseUrl}}/full
Content-Type: application/json
{
"fqdn": "google.com"
}
### Full endpoint - TikTok
POST {{baseUrl}}/full
Content-Type: application/json
{
"fqdn": "tiktok.com"
}
### Full endpoint - YouTube
POST {{baseUrl}}/full
Content-Type: application/json
{
"fqdn": "youtube.com"
}
### Full endpoint - Reddit
POST {{baseUrl}}/full
Content-Type: application/json
{
"fqdn": "reddit.com"
}
### Full endpoint - Twitter
POST {{baseUrl}}/full
Content-Type: application/json
{
"fqdn": "twitter.com"
}
# ============================================
# Edge cases and special domains
# ============================================
### Basic endpoint - Unknown domain
POST {{baseUrl}}/
Content-Type: application/json
{
"fqdn": "unknowndomainexample12345.com"
}
### Detailed endpoint - Localhost
POST {{baseUrl}}/detailed
Content-Type: application/json
{
"fqdn": "localhost"
}
### Full endpoint - IP-like domain
POST {{baseUrl}}/full
Content-Type: application/json
{
"fqdn": "99999.incompass.netstar-inc.com"
}