Files
HellreigN/backend/docs/swagger.json
T
d3m0k1d 27e82f80f1
ci-agent / build (push) Failing after 22s
docs: add docs for agents list
2026-04-03 23:01:59 +03:00

58 lines
1.6 KiB
JSON

{
"swagger": "2.0",
"info": {
"contact": {}
},
"paths": {
"/agents": {
"get": {
"description": "Returns a list of all agents currently connected via gRPC streaming",
"produces": [
"application/json"
],
"tags": [
"agents"
],
"summary": "Get connected agents",
"responses": {
"200": {
"description": "OK",
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/internal_handlers.AgentInfo"
}
}
}
}
}
}
},
"definitions": {
"internal_handlers.AgentInfo": {
"type": "object",
"properties": {
"label": {
"type": "string"
},
"services": {
"type": "array",
"items": {
"type": "string"
}
},
"token": {
"type": "string"
}
}
}
},
"securityDefinitions": {
"Bearer": {
"description": "Type \"Bearer\" followed by a space and the JWT token.",
"type": "apiKey",
"name": "Authorization",
"in": "header"
}
}
}