mirror of
https://github.com/syntrex-lab/gomcp.git
synced 2026-04-25 04:16:22 +02:00
78 lines
No EOL
2.8 KiB
JSON
78 lines
No EOL
2.8 KiB
JSON
{
|
|
"swagger": "2.0",
|
|
"info": {
|
|
"description": "Enterprise API for AI Firewall and Security Operations Center. Auto-generated via Doc-as-Code.",
|
|
"title": "SYNTREX Sentinel SOC API",
|
|
"contact": {},
|
|
"version": "1.0"
|
|
},
|
|
"host": "localhost:9100",
|
|
"basePath": "/",
|
|
"paths": {
|
|
"/api/v1/scan": {
|
|
"post": {
|
|
"description": "Scans user inputs using Sentinel Lattice (Rust engine) to detect jailbreaks, prompt injections, and Data Exfiltration attempts within 1ms.",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"Scanner"
|
|
],
|
|
"summary": "Inspect AI Prompt",
|
|
"parameters": [
|
|
{
|
|
"description": "Request body containing 'prompt' string",
|
|
"name": "body",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "Scan result with confidence scores and block flags",
|
|
"schema": {
|
|
"type": "object",
|
|
"additionalProperties": true
|
|
}
|
|
},
|
|
"400": {
|
|
"description": "Bad Request",
|
|
"schema": {
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"429": {
|
|
"description": "Rate Limited",
|
|
"schema": {
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"503": {
|
|
"description": "Service Unavailable (Queue full)",
|
|
"schema": {
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} |