https://restapiwaf.leagueofcoders.app
No authentication is required for testing purposes.
Create a new resource in the testing environment.
{
"data": {
"field1": "value1",
"field2": "value2",
"fieldN": "valueN" // Any number of simple key-value pairs
}
}
curl -X POST https://restapiwaf.leagueofcoders.app/predict \
-H "Content-Type: application/json" \
-d '{
"data": {
"name": "John",
"email": "test@test.com",
"age": "47",
"occupation": "engineer",
"city": "New York",
"isActive": true
}
}'
"malicious" or "non-malicious"
Query for malicious content detection using URL parameters.
https://restapiwaf.leagueofcoders.app/predict?param1=hello¶m2=world¶m3=1234¶m4=5678
"malicious" or "non-malicious"
{
"data": {
"string_field": "text value",
"number_field": 42,
"boolean_field": true,
"null_field": null
}
}
Response | Description |
---|---|
malicious | The provided data has been flagged as malicious |
non-malicious | The provided data has been identified as non-malicious |
Status Code | Description |
---|---|
400 | Bad Request - Invalid input |
500 | Internal Server Error |
{
"status": "error",
"message": "Description of the error",
"error_code": "ERROR_CODE"
}
All your test data would be logged as "logginginput_v36.csv" and you can download it to see how it performance.
For testing-related questions, reach to me at www.linkedin.com/in/naiwah or email naiwah@loc.com.sg