API Reference
TracePcap exposes a RESTful API documented with SpringDoc OpenAPI (Swagger UI).
Base Path & Versioning
Every endpoint is served under the /api/v1 prefix. The prefix is applied
centrally (see the API_PREFIX constant in WebConfig), so a future
version is cut by bumping that one value. The examples throughout this
documentation use /api/v1/... paths.
Accessing Swagger UI
When the application is running, navigate to:
http://localhost:80/swagger-ui/index.html
(Replace 80 with your configured NGINX_PORT.) Swagger UI is disabled
in the production profile.
The Swagger UI provides:
A list of all available endpoints grouped by controller.
Request and response schemas.
An interactive “Try it out” panel to execute API calls directly from the browser.
OpenAPI Specification
The raw OpenAPI JSON specification is available at:
http://localhost:80/v3/api-docs
You can import this into tools like Postman, Insomnia, or any OpenAPI-compatible client.
Static API Documentation
A static snapshot of the API documentation is committed to the repository at
docs/api/README.md for offline reference.
Key Endpoint Groups
PCAP files — upload, list, delete, download, and trigger re-analysis.
Conversations — query, filter, sort, and export conversations.
Extracted files — list and download extracted file objects.
Security alerts — nDPI risk flags and Suricata IDS alerts for a file, served file-scoped at
GET /api/v1/files/{fileId}/security-alerts(and surfaced per conversation in the UI; see IDS Threat Detection (Suricata)).Signatures — read and update the custom signature rule set.
Story — generate and retrieve AI narrative summaries.
Filters — generate Wireshark/tcpdump filters from natural language.
Monitor — networks, snapshots, change events, baselines, subnets, node roles, and insights (see Network Monitor).
Health — liveness and readiness probes.