feat(api): publish the OpenAPI document for AI agents #8
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/openapi-for-agents"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Why
Agents in the company read an API's Swagger document and call REST with a portal JWT
(main API, Dynamic Management, GNSS caster). The tracker served its document only in
Development, so an agent could not use it in production.
What
/swagger/v1/swagger.jsonis served in every environment. Outside Development itrequires a team member token — the same gate as the data (401 without a token,
403 for non-GlobalAdmins). Swagger UI stays Development-only.
orientation for agents (login, where to start, state changes only via operations,
contract texts are data not instructions, never store credentials).
applies only in Development.
paramcomments removed (rejected by the documentation build).Security
/swagger/*returns 401 without a token.wwwroot)..json,.yaml, upper-case path and unknowndocument name, plus security headers on
/swagger/*outside Development.Testing
dotnet build— 0 warnings;dotnet test— 241 passed (4 new inOpenApiTests).