implemented full response endpoint
This commit is contained in:
@@ -1,14 +1,27 @@
|
||||
@baseUrl = http://localhost:3333
|
||||
|
||||
### Test detailed endpoint with Facebook
|
||||
POST {{baseUrl}}/detailed
|
||||
# ============================================
|
||||
# POST / - Basic Categorization Endpoint
|
||||
# Returns: Simple result array of category IDs
|
||||
# ============================================
|
||||
|
||||
### Basic endpoint - Facebook
|
||||
POST {{baseUrl}}/
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"fqdn": "facebook.com"
|
||||
}
|
||||
|
||||
### Test detailed endpoint with Google
|
||||
### Basic endpoint - Google
|
||||
POST {{baseUrl}}/
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"fqdn": "google.com"
|
||||
}
|
||||
|
||||
### Basic endpoint - TikTok
|
||||
POST {{baseUrl}}/
|
||||
Content-Type: application/json
|
||||
|
||||
@@ -16,15 +29,60 @@ Content-Type: application/json
|
||||
"fqdn": "tiktok.com"
|
||||
}
|
||||
|
||||
### Test detailed endpoint with Reddit
|
||||
POST {{baseUrl}}/detailed
|
||||
### Basic endpoint - YouTube
|
||||
POST {{baseUrl}}/
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"fqdn": "youtube.com"
|
||||
}
|
||||
|
||||
### Basic endpoint - Reddit
|
||||
POST {{baseUrl}}/
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"fqdn": "reddit.com"
|
||||
}
|
||||
|
||||
### Test detailed endpoint with YouTube
|
||||
### 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
|
||||
|
||||
@@ -32,7 +90,15 @@ Content-Type: application/json
|
||||
"fqdn": "youtube.com"
|
||||
}
|
||||
|
||||
### Test detailed endpoint with Twitter
|
||||
### Detailed endpoint - Reddit
|
||||
POST {{baseUrl}}/detailed
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"fqdn": "reddit.com"
|
||||
}
|
||||
|
||||
### Detailed endpoint - Twitter
|
||||
POST {{baseUrl}}/detailed
|
||||
Content-Type: application/json
|
||||
|
||||
@@ -40,10 +106,83 @@ Content-Type: application/json
|
||||
"fqdn": "twitter.com"
|
||||
}
|
||||
|
||||
### Test simple endpoint with Facebook (original endpoint)
|
||||
POST {{baseUrl}}/
|
||||
# ============================================
|
||||
# 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"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user