mirror of
https://github.com/syntrex-lab/gomcp.git
synced 2026-06-20 15:28:05 +02:00
feat(docs): finalize SDD-110 localization and Next.js Markdown rendering
This commit is contained in:
parent
fe9415ab74
commit
2c27cf1bf7
5 changed files with 251 additions and 5 deletions
102
docs/docs.go
Normal file
102
docs/docs.go
Normal file
|
|
@ -0,0 +1,102 @@
|
|||
// Package docs Code generated by swaggo/swag. DO NOT EDIT
|
||||
package docs
|
||||
|
||||
import "github.com/swaggo/swag"
|
||||
|
||||
const docTemplate = `{
|
||||
"schemes": {{ marshal .Schemes }},
|
||||
"swagger": "2.0",
|
||||
"info": {
|
||||
"description": "{{escape .Description}}",
|
||||
"title": "{{.Title}}",
|
||||
"contact": {},
|
||||
"version": "{{.Version}}"
|
||||
},
|
||||
"host": "{{.Host}}",
|
||||
"basePath": "{{.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"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}`
|
||||
|
||||
// SwaggerInfo holds exported Swagger Info so clients can modify it
|
||||
var SwaggerInfo = &swag.Spec{
|
||||
Version: "1.0",
|
||||
Host: "localhost:9100",
|
||||
BasePath: "/",
|
||||
Schemes: []string{},
|
||||
Title: "SYNTREX Sentinel SOC API",
|
||||
Description: "Enterprise API for AI Firewall and Security Operations Center. Auto-generated via Doc-as-Code.",
|
||||
InfoInstanceName: "swagger",
|
||||
SwaggerTemplate: docTemplate,
|
||||
LeftDelim: "{{",
|
||||
RightDelim: "}}",
|
||||
}
|
||||
|
||||
func init() {
|
||||
swag.Register(SwaggerInfo.InstanceName(), SwaggerInfo)
|
||||
}
|
||||
78
docs/swagger.json
Normal file
78
docs/swagger.json
Normal file
|
|
@ -0,0 +1,78 @@
|
|||
{
|
||||
"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"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
54
docs/swagger.yaml
Normal file
54
docs/swagger.yaml
Normal file
|
|
@ -0,0 +1,54 @@
|
|||
basePath: /
|
||||
host: localhost:9100
|
||||
info:
|
||||
contact: {}
|
||||
description: Enterprise API for AI Firewall and Security Operations Center. Auto-generated
|
||||
via Doc-as-Code.
|
||||
title: SYNTREX Sentinel SOC API
|
||||
version: "1.0"
|
||||
paths:
|
||||
/api/v1/scan:
|
||||
post:
|
||||
consumes:
|
||||
- application/json
|
||||
description: Scans user inputs using Sentinel Lattice (Rust engine) to detect
|
||||
jailbreaks, prompt injections, and Data Exfiltration attempts within 1ms.
|
||||
parameters:
|
||||
- description: Request body containing 'prompt' string
|
||||
in: body
|
||||
name: body
|
||||
required: true
|
||||
schema:
|
||||
additionalProperties:
|
||||
type: string
|
||||
type: object
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
"200":
|
||||
description: Scan result with confidence scores and block flags
|
||||
schema:
|
||||
additionalProperties: true
|
||||
type: object
|
||||
"400":
|
||||
description: Bad Request
|
||||
schema:
|
||||
additionalProperties:
|
||||
type: string
|
||||
type: object
|
||||
"429":
|
||||
description: Rate Limited
|
||||
schema:
|
||||
additionalProperties:
|
||||
type: string
|
||||
type: object
|
||||
"503":
|
||||
description: Service Unavailable (Queue full)
|
||||
schema:
|
||||
additionalProperties:
|
||||
type: string
|
||||
type: object
|
||||
summary: Inspect AI Prompt
|
||||
tags:
|
||||
- Scanner
|
||||
swagger: "2.0"
|
||||
Loading…
Add table
Add a link
Reference in a new issue